diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-09-26 16:12:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-09-26 16:12:12 +0000 |
commit | 207cce4c4781fbd9928927d3bb6805bcc843a158 (patch) | |
tree | 97225ca65f5271bf5af3fbd6f6017bcfea97b1d9 /sysdeps/posix | |
parent | 7f71c55ddfc2e8f0fb64034ae4f92c574fbe22fd (diff) | |
download | glibc-207cce4c4781fbd9928927d3bb6805bcc843a158.tar glibc-207cce4c4781fbd9928927d3bb6805bcc843a158.tar.gz glibc-207cce4c4781fbd9928927d3bb6805bcc843a158.tar.bz2 glibc-207cce4c4781fbd9928927d3bb6805bcc843a158.zip |
[BZ #524]
* sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop of
number of bits is multiple of 8.
Patch by Fredrik Tolf <fredrik@dolda2000.com>.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index d97b95b5e0..4db98d942c 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -1266,7 +1266,7 @@ match_prefix (const struct sockaddr_storage *ss, const struct prefixlist *list, uint8_t *mask = list[idx].prefix.s6_addr; uint8_t *val = in6->sin6_addr.s6_addr; - while (bits > 8) + while (bits >= 8) { if (*mask != *val) break; |