diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-28 16:40:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-28 16:40:25 +0000 |
commit | bacaff6e5474d6c5f080ce4cd2a55e8ff1ba5c94 (patch) | |
tree | 5ca8c92753ef2c2fb7d39f125dc90deb18cfc1b8 /networking | |
parent | 261cf4784fa39fb6cb3b7db99e809a7832d94d0a (diff) | |
download | busybox-w32-1_12_1.tar.gz busybox-w32-1_12_1.tar.bz2 busybox-w32-1_12_1.zip |
apply post-1.12.0 fixes, bump version to 1.12.11_12_1
Diffstat (limited to 'networking')
-rw-r--r-- | networking/udhcp/dhcpc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 5caa00c83..92ebe3676 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -259,9 +259,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) | |||
259 | if (opt & OPT_o) | 259 | if (opt & OPT_o) |
260 | client_config.no_default_options = 1; | 260 | client_config.no_default_options = 1; |
261 | while (list_O) { | 261 | while (list_O) { |
262 | int n = index_in_strings(dhcp_option_strings, llist_pop(&list_O)); | 262 | char *optstr = llist_pop(&list_O); |
263 | int n = index_in_strings(dhcp_option_strings, optstr); | ||
263 | if (n < 0) | 264 | if (n < 0) |
264 | bb_error_msg_and_die("unknown option '%s'", list_O->data); | 265 | bb_error_msg_and_die("unknown option '%s'", optstr); |
265 | n = dhcp_options[n].code; | 266 | n = dhcp_options[n].code; |
266 | client_config.opt_mask[n >> 3] |= 1 << (n & 7); | 267 | client_config.opt_mask[n >> 3] |= 1 << (n & 7); |
267 | } | 268 | } |