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>.
This commit is contained in:
Ulrich Drepper 2000-11-10 05:03:23 +00:00
parent 920e11e91b
commit 5804f16c54
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>.
2000-11-09 H.J. Lu <hjl@gnu.org>
* sunrpc/Versions (GLIBC_2.1): Remove xdr_cryptkeyarg,

View 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);