diff options
author | Allan McRae <allan@archlinux.org> | 2013-10-25 14:25:38 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-25 14:28:32 +1000 |
commit | 894f3f1049135dcbeaab8f18690973663ef3147c (patch) | |
tree | 5be512d821ae330cb5cc88fb44f74b6184a34626 /ChangeLog | |
parent | b85545a67110b236676aec8000f52d8385465660 (diff) | |
download | glibc-894f3f1049135dcbeaab8f18690973663ef3147c.tar glibc-894f3f1049135dcbeaab8f18690973663ef3147c.tar.gz glibc-894f3f1049135dcbeaab8f18690973663ef3147c.tar.bz2 glibc-894f3f1049135dcbeaab8f18690973663ef3147c.zip |
Fix incorrect getaddrinfo assertion trigger
[BZ #9954]
With the following /etc/hosts:
127.0.0.1 www.my-domain.es
127.0.1.1 www.my-domain.es
192.168.0.1 www.my-domain.es
Using getaddrinfo() on www.my-domain.es, trigger the following assertion:
../sysdeps/posix/getaddrinfo.c:1473: rfc3484_sort: Assertion
`src->results[i].native == -1 || src->results[i].native == a1_native' failed.
This is due to two different bugs:
- In rfc3484_sort() rule 7, src->results[i].native is assigned even if
src->results[i].index is -1, meaning that no interface is associated.
- In getaddrinfo() the source IP address used with the lo interface needs a
special case, as it can be any IP within 127.X.Y.Z.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2013-10-25 Aurelien Jarno <aurelien@aurel32.net> + + [BZ #9954] + * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native + result if the result has no associated interface. + * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect + interface for all 127.X.Y.Z addresses. + 2013-10-24 Chris Leonard <cjl@sugarlabs.org> * locale/iso-639.def: Add Ligurian (lij) |