[asterisk-commits] mmichelson: branch 1.8 r367416 - /branches/1.8/main/tcptls.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 23 15:27:51 CDT 2012
Author: mmichelson
Date: Wed May 23 15:27:47 2012
New Revision: 367416
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=367416
Log:
Only call SSL_CTX_free if DO_SSL is defined.
Thanks to Paul Belanger for pointing out this error.
Modified:
branches/1.8/main/tcptls.c
Modified: branches/1.8/main/tcptls.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/tcptls.c?view=diff&rev=367416&r1=367415&r2=367416
==============================================================================
--- branches/1.8/main/tcptls.c (original)
+++ branches/1.8/main/tcptls.c Wed May 23 15:27:47 2012
@@ -403,10 +403,12 @@
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)
More information about the asterisk-commits
mailing list