diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-23 15:43:08 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-23 15:43:08 +0100 |
commit | 37a658c4c86fa5ad9fb6f76cba2fca80f4249036 (patch) | |
tree | 0cdb35ff2c8baa859eab8a0e5cc5af5108ae06a4 /networking/nameif.c | |
parent | 30ebd7bd7838787bdb7de0b484e37e442ab16ac5 (diff) | |
download | busybox-w32-37a658c4c86fa5ad9fb6f76cba2fca80f4249036.tar.gz busybox-w32-37a658c4c86fa5ad9fb6f76cba2fca80f4249036.tar.bz2 busybox-w32-37a658c4c86fa5ad9fb6f76cba2fca80f4249036.zip |
udhcp: handle errors in read_staticlease
also gets rid of ether-aton's static buffer in ether-wake:
text data bss dec hexfilename
838664 441 7572 846677 ceb55busybox_old
838650 441 7564 846655 ceb3fbusybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/nameif.c')
-rw-r--r-- | networking/nameif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nameif.c b/networking/nameif.c index 36fbb954e..046e308c5 100644 --- a/networking/nameif.c +++ b/networking/nameif.c | |||
@@ -90,7 +90,7 @@ static void nameif_parse_selector(ethtable_t *ch, char *selector) | |||
90 | } else { | 90 | } else { |
91 | #endif | 91 | #endif |
92 | lmac = xmalloc(ETH_ALEN); | 92 | lmac = xmalloc(ETH_ALEN); |
93 | ch->mac = ether_aton_r(selector + (strncmp(selector, "mac=", 4) ? 0 : 4), lmac); | 93 | ch->mac = ether_aton_r(selector + (strncmp(selector, "mac=", 4) != 0 ? 0 : 4), lmac); |
94 | if (ch->mac == NULL) | 94 | if (ch->mac == NULL) |
95 | bb_error_msg_and_die("can't parse %s", selector); | 95 | bb_error_msg_and_die("can't parse %s", selector); |
96 | #if ENABLE_FEATURE_NAMEIF_EXTENDED | 96 | #if ENABLE_FEATURE_NAMEIF_EXTENDED |