diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-22 22:22:10 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-22 22:22:10 +0000 |
commit | 58875aefe4662f83273a787db5aae3ed3abd470a (patch) | |
tree | d28f81d979f0c9fedf630b8bb0af27145bc1b72d /networking | |
parent | d0587ed9666d2d3aa65c42007ae93244cfc58568 (diff) | |
download | busybox-w32-58875aefe4662f83273a787db5aae3ed3abd470a.tar.gz busybox-w32-58875aefe4662f83273a787db5aae3ed3abd470a.tar.bz2 busybox-w32-58875aefe4662f83273a787db5aae3ed3abd470a.zip |
assorted fixes uncovered by randomconfig runs
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifconfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 96af7b770..3dcc902ca 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -387,9 +387,10 @@ int ifconfig_main(int argc, char **argv) | |||
387 | } | 387 | } |
388 | #endif | 388 | #endif |
389 | else { | 389 | else { |
390 | len_and_sockaddr *lsa; | ||
390 | if (strcmp(host, "inet") == 0) | 391 | if (strcmp(host, "inet") == 0) |
391 | continue; /* compat stuff */ | 392 | continue; /* compat stuff */ |
392 | len_and_sockaddr *lsa = xhost2sockaddr(host, 0); | 393 | lsa = xhost2sockaddr(host, 0); |
393 | #if ENABLE_FEATURE_IPV6 | 394 | #if ENABLE_FEATURE_IPV6 |
394 | if (lsa->sa.sa_family == AF_INET6) { | 395 | if (lsa->sa.sa_family == AF_INET6) { |
395 | int sockfd6; | 396 | int sockfd6; |