]> git.ipfire.org Git - thirdparty/glibc.git/commit
resolv: free only initialized items from gai pool
authorJan Palus <jpalus@fastmail.com>
Mon, 30 Oct 2023 18:57:01 +0000 (19:57 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 20 Nov 2023 14:03:29 +0000 (15:03 +0100)
commitf2aaf18af50109b0982723bdf4e0a3bca2f8d3d6
tree60be5f0a2da51c42b0bdcd9acc69a7910579b1b1
parentcfb5a97a93ea656e3b2263e42142a4032986d9ba
resolv: free only initialized items from gai pool

pool_max_size denotes total allocated rows in pool but possibly not yet
initialized. it's pool_size that represents number of actually occupied
rows hence use it when freeing pool to avoid freeing random addresses.

Signed-off-by: Jan Palus <jpalus@fastmail.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
resolv/gai_misc.c