From bacaff6e5474d6c5f080ce4cd2a55e8ff1ba5c94 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 28 Sep 2008 16:40:25 +0000 Subject: apply post-1.12.0 fixes, bump version to 1.12.1 --- networking/udhcp/dhcpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'networking') diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 5caa00c..92ebe36 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -259,9 +259,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) if (opt & OPT_o) client_config.no_default_options = 1; while (list_O) { - int n = index_in_strings(dhcp_option_strings, llist_pop(&list_O)); + char *optstr = llist_pop(&list_O); + int n = index_in_strings(dhcp_option_strings, optstr); if (n < 0) - bb_error_msg_and_die("unknown option '%s'", list_O->data); + bb_error_msg_and_die("unknown option '%s'", optstr); n = dhcp_options[n].code; client_config.opt_mask[n >> 3] |= 1 << (n & 7); } -- cgit v1.1