]> git.ipfire.org Git - thirdparty/glibc.git/commit
gaiconf_init: Avoid double-free in label and precedence lists
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 15:41:03 +0000 (21:11 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 4 Aug 2021 10:23:46 +0000 (15:53 +0530)
commita5bd2e10e0c25b80286dc36068e22a4cb4893af0
tree7e0a171172e8071b800ca6cebcd3a6891db1b048
parent3a48da47a91ccc6f5de260574809e7a44551b876
gaiconf_init: Avoid double-free in label and precedence lists

labellist and precedencelist could get freed a second time if there
are allocation failures, so set them to NULL to avoid a double-free.

Reviewed-by: Arjun Shankar <arjun@redhat.com>
(cherry picked from commit 77a34079d8f3d63b61543bf3af93043f8674e4c4)
sysdeps/posix/getaddrinfo.c