about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-10-25 14:25:38 +1000
committerAllan McRae <allan@archlinux.org>2013-10-25 23:58:29 +1000
commit54377921e7092f709c6a5985688769404637055f (patch)
tree746d0f3424ead40145d8ffa45ea9527ff8534b28 /sysdeps/unix/sysv/linux/mips
parent9a010a5f6328aa7ba353679e9a9e07465917d6a0 (diff)
downloadglibc-54377921e7092f709c6a5985688769404637055f.tar.gz
glibc-54377921e7092f709c6a5985688769404637055f.tar.xz
glibc-54377921e7092f709c6a5985688769404637055f.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.

(cherry picked from commit 894f3f1049135dcbeaab8f18690973663ef3147c)
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips')
0 files changed, 0 insertions, 0 deletions