Skip to content
Snippets Groups Projects
Commit 2cb4cdc0 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "Prevent Undefined Capath Crash"

parents 1a1c8623 10a4439a
Branches
Tags
No related merge requests found
...@@ -8736,6 +8736,10 @@ static void manager_shutdown(void) ...@@ -8736,6 +8736,10 @@ static void manager_shutdown(void)
ami_tls_cfg.pvtfile = NULL; ami_tls_cfg.pvtfile = NULL;
ast_free(ami_tls_cfg.cipher); ast_free(ami_tls_cfg.cipher);
ami_tls_cfg.cipher = NULL; ami_tls_cfg.cipher = NULL;
ast_free(ami_tls_cfg.cafile);
ami_tls_cfg.cafile = NULL;
ast_free(ami_tls_cfg.capath);
ami_tls_cfg.capath = NULL;
ao2_global_obj_release(mgr_sessions); ao2_global_obj_release(mgr_sessions);
...@@ -8836,6 +8840,10 @@ static void manager_set_defaults(void) ...@@ -8836,6 +8840,10 @@ static void manager_set_defaults(void)
ami_tls_cfg.pvtfile = ast_strdup(""); ami_tls_cfg.pvtfile = ast_strdup("");
ast_free(ami_tls_cfg.cipher); ast_free(ami_tls_cfg.cipher);
ami_tls_cfg.cipher = ast_strdup(""); ami_tls_cfg.cipher = ast_strdup("");
ast_free(ami_tls_cfg.cafile);
ami_tls_cfg.cafile = ast_strdup("");
ast_free(ami_tls_cfg.capath);
ami_tls_cfg.capath = ast_strdup("");
} }
static int __init_manager(int reload, int by_external_config) static int __init_manager(int reload, int by_external_config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment