summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-10 05:03:23 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-10 05:03:23 +0000
commit5804f16c5405e939dbefbaa1d212426c57216a18 (patch)
tree35aea3c3e75c297bc20333de8ee2108f62c928d4 /inet
parent920e11e91b4e518820098f7a81238048aaa5460e (diff)
downloadglibc-5804f16c5405e939dbefbaa1d212426c57216a18.tar.gz
glibc-5804f16c5405e939dbefbaa1d212426c57216a18.tar.xz
glibc-5804f16c5405e939dbefbaa1d212426c57216a18.zip
Update.
2000-11-09  Ulrich Drepper  <drepper@redhat.com>

	* inet/getnameinfo.c (getnameinfo): Use correct destination
	parameter for if_indextoname.
	Patch by Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>.
Diffstat (limited to 'inet')
-rw-r--r--inet/getnameinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 119def2f83..25a8af7a6c 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -312,7 +312,7 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
 			if (IN6_IS_ADDR_LINKLOCAL (&sin6p->sin6_addr)
 			    || IN6_IS_ADDR_MC_LINKLOCAL (&sin6p->sin6_addr))
 			  {
-			    if (if_indextoname (scopeid, scopebuf) == NULL)
+			    if (if_indextoname (scopeid, scopeptr) == NULL)
 			      ++ni_numericscope;
 			    else
 			      scopelen = strlen (scopebuf);