glibc/sysdeps/posix
Andreas Schwab a071766ebf Fix use of half-initialized result in getaddrinfo when using nscd (bug 16743)
This fixes a bug in the way the results from __nscd_getai are collected:
for every returned result a new entry is first added to the
gaih_addrtuple list, but if that result doesn't match the request this
entry remains uninitialized.  So for this non-matching result an extra
result with uninitialized content is returned.

To reproduce (with nscd running):

	$ getent ahostsv4 localhost
	127.0.0.1       STREAM localhost
	127.0.0.1       DGRAM
	127.0.0.1       RAW
	(null)          STREAM
	(null)          DGRAM
	(null)          RAW
2014-03-24 16:51:53 +01:00
..
alarm.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
clock_getres.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
clock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
closedir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ctermid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
cuserid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dirfd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dirstream.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dup2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
dup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
euidaccess.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fdopendir.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
flock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fpathconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gai_strerror-strs.h
gai_strerror.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getaddrinfo.c Fix use of half-initialized result in getaddrinfo when using nscd (bug 16743) 2014-03-24 16:51:53 +01:00
getcwd.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getdtsz.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gethostname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getpagesize.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gettimeofday.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
isatty.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
isfdtype.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
killpg.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
libc_fatal.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Makefile
mkfifo.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
mkfifoat.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
nice.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
open64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
opendir.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
pathconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pause.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
posix_fallocate64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
posix_fallocate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pread64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pread.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
preadv64.c * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64. 2009-04-03 19:57:16 +00:00
preadv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
profil.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwrite64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwrite.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwritev64.c * misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64. 2009-04-03 19:57:16 +00:00
pwritev.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
raise.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
readdir_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
readdir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
readv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
remove.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
rename.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
rewinddir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
seekdir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
shm_open.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
shm_unlink.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigblock.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigignore.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigintr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
signal.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigpause.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigset.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigsetmask.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigsuspend.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigvec.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sigwait.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sleep.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
spawni.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sprofil.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sysconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
system.c Do not enable asynchronous cancellation in system. Fixes bug 14782. 2014-01-15 18:39:21 +01:00
sysv_signal.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
telldir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tempname.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
time.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
timespec_get.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
truncate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ttyname_r.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ttyname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ulimit.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
utime.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
utimes.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wait3.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wait.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
waitid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
writev.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00