summaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-01-25 22:46:34 +0000
committerDenis Vlasenko2008-01-25 22:46:34 +0000
commitb76b9a4328460fdee7d72c08a89d1d79392beb99 (patch)
tree9346e038153ee2646e1f036ed6310b97cac5923d /networking/udhcp/dhcpc.c
parent893988182a97bc58d8d1d8eb15d00e427801cedd (diff)
downloadbusybox-b76b9a4328460fdee7d72c08a89d1d79392beb99.zip
busybox-b76b9a4328460fdee7d72c08a89d1d79392beb99.tar.gz
udhcpc: filter unwanted packets in kernel
(Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>)
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index e9b728a..f54bc08 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -452,7 +452,8 @@ int udhcpc_main(int argc, char **argv)
if (listen_mode == LISTEN_KERNEL)
len = udhcp_recv_packet(&packet, sockfd);
- else len = get_raw_packet(&packet, sockfd);
+ else
+ len = get_raw_packet(&packet, sockfd);
if (len == -1) { /* error is severe, reopen socket */
DEBUG("error on read, %s, reopening socket", strerror(errno));