diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-10-08 17:28:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-10-08 17:28:41 +0000 |
commit | 4f3d6536ce873999c3019024d4045e3e0b34058a (patch) | |
tree | 7af65954f6126cc84de53fddfc8c1b146d898a45 /nss | |
parent | 869e83f2f9e1a5e6649746e5c605fb72f6d9a250 (diff) | |
download | glibc-4f3d6536ce873999c3019024d4045e3e0b34058a.zip glibc-4f3d6536ce873999c3019024d4045e3e0b34058a.tar.gz glibc-4f3d6536ce873999c3019024d4045e3e0b34058a.tar.bz2 |
(hosts_keys): Pass INADDRSZ as size rather than IN6ADDRSZ to AF_INET gethostbyaddr.
Diffstat (limited to 'nss')
-rw-r--r-- | nss/getent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nss/getent.c b/nss/getent.c index 02bba39..489420e 100644 --- a/nss/getent.c +++ b/nss/getent.c @@ -280,9 +280,9 @@ hosts_keys (int number, char *key[]) char addr[IN6ADDRSZ]; if (inet_pton (AF_INET6, key[i], &addr) > 0) - host = gethostbyaddr (addr, sizeof (addr), AF_INET6); + host = gethostbyaddr (addr, IN6ADDRSZ, AF_INET6); else if (inet_pton (AF_INET, key[i], &addr) > 0) - host = gethostbyaddr (addr, sizeof (addr), AF_INET); + host = gethostbyaddr (addr, INADDRSZ, AF_INET); else if ((host = gethostbyname2 (key[i], AF_INET6)) == NULL) host = gethostbyname2 (key[i], AF_INET); |