1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 09:32:34 +00:00

[mod_enum] Fix use-after-free if creating resolver from file failed

This commit is contained in:
Tomasz Ostrowski 2023-03-28 16:36:01 +02:00 committed by GitHub
parent 6c97e3b0f4
commit afc8d78a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -497,6 +497,7 @@ switch_status_t ldns_lookup(const char *number, const char *root, char *server_n
/* create a new resolver from /etc/resolv.conf */
if (res) {
ldns_resolver_free(res);
res = NULL;
}
s = ldns_resolver_new_frm_file(&res, NULL);
}