(getnameinfo): Use correct destination parameter for if_indextoname.
authordrepper <drepper>
Fri, 10 Nov 2000 05:02:55 +0000 (05:02 +0000)
committerdrepper <drepper>
Fri, 10 Nov 2000 05:02:55 +0000 (05:02 +0000)
inet/getnameinfo.c

index 119def2..25a8af7 100644 (file)
@@ -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);