diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-10-15 13:53:45 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-10-15 13:53:45 -0500 |
commit | 3b1324b13e010582cfc7a74ced002a4f4bff6466 (patch) | |
tree | 683542f1cd5936719b1e5a2800613a54a2f1dd0d /main | |
parent | 6fc88e80e88502015082e175d8b5735c3cd84267 (diff) | |
parent | 114ed320eae5f5fa111adc4ecd5ccd8f1b3537d0 (diff) |
Merge "tcptls: NULL-check the parameter of ast_ssl_teardown before accessing it." into 13
Diffstat (limited to 'main')
-rw-r--r-- | main/tcptls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tcptls.c b/main/tcptls.c index 820a03eaf..e8ce2ce64 100644 --- a/main/tcptls.c +++ b/main/tcptls.c @@ -1047,7 +1047,7 @@ int ast_ssl_setup(struct ast_tls_config *cfg) void ast_ssl_teardown(struct ast_tls_config *cfg) { #ifdef DO_SSL - if (cfg->ssl_ctx) { + if (cfg && cfg->ssl_ctx) { SSL_CTX_free(cfg->ssl_ctx); cfg->ssl_ctx = NULL; } |