assorted fixes uncovered by randomconfig runs

This commit is contained in:
Denis Vlasenko
2007-03-22 22:22:10 +00:00
parent d0587ed966
commit 58875aefe4
3 changed files with 15 additions and 2 deletions

View File

@@ -387,9 +387,10 @@ int ifconfig_main(int argc, char **argv)
}
#endif
else {
len_and_sockaddr *lsa;
if (strcmp(host, "inet") == 0)
continue; /* compat stuff */
len_and_sockaddr *lsa = xhost2sockaddr(host, 0);
lsa = xhost2sockaddr(host, 0);
#if ENABLE_FEATURE_IPV6
if (lsa->sa.sa_family == AF_INET6) {
int sockfd6;