diff options
author | Romain Geissler <romain.geissler@amadeus.com> | 2023-09-25 01:21:51 +0100 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-09-25 01:21:51 +0100 |
commit | ec6b95c3303c700eb89eebeda2d7264cc184a796 (patch) | |
tree | 807844f0f231ea250d81e0f207369c34e9071d44 /nss/tst-nss-gai-hv2-canonname.c | |
parent | 5d00c201b9a2da768a79ea8d5311f257871c0b43 (diff) | |
download | glibc-ec6b95c3303c700eb89eebeda2d7264cc184a796.zip glibc-ec6b95c3303c700eb89eebeda2d7264cc184a796.tar.gz glibc-ec6b95c3303c700eb89eebeda2d7264cc184a796.tar.bz2 |
Fix leak in getaddrinfo introduced by the fix for CVE-2023-4806 [BZ #30843]
This patch fixes a very recently added leak in getaddrinfo.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'nss/tst-nss-gai-hv2-canonname.c')
-rw-r--r-- | nss/tst-nss-gai-hv2-canonname.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nss/tst-nss-gai-hv2-canonname.c b/nss/tst-nss-gai-hv2-canonname.c index d5f10c0..7db53cf 100644 --- a/nss/tst-nss-gai-hv2-canonname.c +++ b/nss/tst-nss-gai-hv2-canonname.c @@ -21,6 +21,7 @@ #include <netdb.h> #include <stdlib.h> #include <string.h> +#include <mcheck.h> #include <support/check.h> #include <support/xstdio.h> #include "nss/tst-nss-gai-hv2-canonname.h" @@ -41,6 +42,8 @@ static void do_prepare (int a, char **av) static int do_test (void) { + mtrace (); + __nss_configure_lookup ("hosts", "test_gai_hv2_canonname"); struct addrinfo hints = {}; |