summaryrefslogtreecommitdiff
path: root/networking/udhcp/socket.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-12-31 03:33:50 +0000
committerDenis Vlasenko2008-12-31 03:33:50 +0000
commit15c0b725849875c718b168a26e13872e163cde4c (patch)
tree687a5425953ae362ef285c6c671f09a05d3fa3c0 /networking/udhcp/socket.c
parentccdc13d306c0a8d2735488bf8e46503f7e567767 (diff)
downloadbusybox-15c0b725849875c718b168a26e13872e163cde4c.zip
busybox-15c0b725849875c718b168a26e13872e163cde4c.tar.gz
Apply post 1.13.1 patches, bump to 1.13.21_13_2
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r--networking/udhcp/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index ea0a2c3..385d5c3 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -98,8 +98,8 @@ int FAST_FUNC udhcp_listen_socket(/*uint32_t ip,*/ int port, const char *inf)
bb_perror_msg_and_die("SO_BROADCAST");
/* NB: bug 1032 says this doesn't work on ethernet aliases (ethN:M) */
- if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, &inf, strlen(inf) + 1) == -1)
- bb_perror_msg_and_die("SO_BINDTODEVICE");
+ if (setsockopt_bindtodevice(fd, inf))
+ xfunc_die(); /* warning is already printed */
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;