Only call SSL_CTX_free if DO_SSL is defined.

Thanks to Paul Belanger for pointing out this error.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@367416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.15
Mark Michelson 13 years ago
parent f26d22b563
commit e456e4a8f1

@ -403,10 +403,12 @@ 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) {
SSL_CTX_free(cfg->ssl_ctx);
cfg->ssl_ctx = NULL;
}
#endif
}
struct ast_tcptls_session_instance *ast_tcptls_client_start(struct ast_tcptls_session_instance *tcptls_session)

Loading…
Cancel
Save