diff options
author | John Thacker <johnthacker@gmail.com> | 2023-09-11 20:15:02 -0400 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2023-09-11 20:17:17 -0400 |
commit | ff36310c46927f8f054092ce3abc8c936ec7cf09 (patch) | |
tree | ee07bfdd8646ad4440796f58ea25970639019a71 /epan/addr_resolv.c | |
parent | 18f47c198866dc87d91f2116d254838661192b6c (diff) |
addr_resolv: Fix use-after-free of g_ipxnet_path
Since this is declared in the addr_resolve scope and freed
when address resolving is cleaned up, make sure to set it to
null.
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index 4e500e9aa6..830a015bbb 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -2159,6 +2159,7 @@ initialize_ipxnets(void) static void ipx_name_lookup_cleanup(void) { + g_ipxnets_path = NULL; g_free(g_pipxnets_path); g_pipxnets_path = NULL; } |