diff options
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) } #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; |