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 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
connections.c nscd: Fix netlink cache invalidation if epoll is used [BZ #29415] 2022-08-29 21:54:20 +02:00
dbg_log.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dbg_log.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Depend hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
gai.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getgrgid_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getgrnam_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
gethstbyad_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
gethstbynm3_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getpwnam_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getpwuid_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsrvbynm_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getsrvbypt_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
grpcache.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
hstcache.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
initgrcache.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
mem.c nscd: Remove unused variable 2022-03-23 15:33:17 -03:00
netgroupcache.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nscd_conf.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
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 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nscd_setup_thread.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nscd_stat.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nscd-client.h Use C11 atomics instead of atomic_decrement(_val) 2022-09-09 14:22:26 +01:00
nscd.c Update copyright dates not handled by scripts/update-copyrights. 2022-01-01 11:42:26 -08:00
nscd.conf nscd: Improve nscd.conf comments. 2019-08-19 09:57:58 -04:00
nscd.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nscd.init . 2007-07-31 13:33:18 +00:00
nscd.service nscd: also invalidate netgroup cache on reload 2014-03-19 14:45:10 +01:00
nscd.tmpfiles Add systemd unit file for nscd 2013-12-16 11:22:01 +10:00
pwdcache.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
res_hconf.c [BZ #4814] 2007-08-22 03:14:29 +00:00
selinux.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
selinux.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
servicescache.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00