summaryrefslogtreecommitdiff
path: root/lib/libc/net/getaddrinfo.c
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-02-19 16:10:16 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-02-19 16:10:16 +0000
commit0ca229d64d13381cb45c8e73c54fd8bd67aa92d8 (patch)
tree72f8866991d9743af43e911a9f11186d62ceb921 /lib/libc/net/getaddrinfo.c
parent6d939e82e0d6b54be01c0c7323db0c4c0121a82b (diff)
Notes
Diffstat (limited to 'lib/libc/net/getaddrinfo.c')
-rw-r--r--lib/libc/net/getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 8b6d6b725190..a1f2726a1f86 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -709,7 +709,7 @@ explore_numeric_scope(pai, hostname, servname, res)
switch (pai->ai_family) {
#ifdef INET6
case AF_INET6:
- scope = if_nametoindex(hostname2);
+ scope = if_nametoindex(cp);
if (scope == 0) {
error = EAI_SYSTEM;
goto free;
@@ -718,7 +718,7 @@ explore_numeric_scope(pai, hostname, servname, res)
#endif
}
- error = explore_numeric(pai, cp, servname, res);
+ error = explore_numeric(pai, hostname2, servname, res);
if (error == 0) {
for (cur = *res; cur; cur = cur->ai_next) {
#ifdef INET6