glibc/nscd
Siddhesh Poyarekar 6e33e5c4b7 nscd: Drop local address tuple variable [BZ #29607]
When a request needs to be resent (e.g. due to insufficient buffer
space), the references to subsequent tuples in the local variable are
stale and should not be used.  This used to work by accident before, but
since 1d495912a it no longer does.  Instead of trying to reset it, just
let gethostbyname4_r write into TUMPBUF6 for us, thus maintaining a
consistent state at all times.  This is now consistent with what is done
in gaih_inet for getaddrinfo.

Resolves: BZ #29607
Reported-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2022-10-04 18:40:25 -04:00
..
aicache.c nscd: Drop local address tuple variable [BZ #29607] 2022-10-04 18:40:25 -04:00
cache.c Use C11 atomics instead of atomic_increment(_val) 2022-09-23 15:59:56 +01:00
cachedumper.c
connections.c
dbg_log.c
dbg_log.h
Depend
gai.c
getgrgid_r.c
getgrnam_r.c
gethstbyad_r.c
gethstbynm3_r.c
getpwnam_r.c
getpwuid_r.c
getsrvbynm_r.c
getsrvbypt_r.c
grpcache.c
hstcache.c
initgrcache.c
Makefile
mem.c
netgroupcache.c
nscd_conf.c
nscd_getai.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_getgr_r.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_gethst_r.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_getpw_r.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_getserv_r.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_helper.c Use C11 atomics instead of atomic_increment(_val) 2022-09-23 15:59:56 +01:00
nscd_initgroups.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_netgroup.c Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd_proto.h
nscd_setup_thread.c
nscd_stat.c
nscd-client.h Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd.c
nscd.conf
nscd.h
nscd.init
nscd.service
nscd.tmpfiles
pwdcache.c
res_hconf.c
selinux.c
selinux.h
servicescache.c