[asterisk-commits] file: branch 12 r417705 - /branches/12/res/res_rtp_asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 1 09:40:39 CDT 2014


Author: file
Date: Tue Jul  1 09:40:24 2014
New Revision: 417705

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417705
Log:
res_rtp_asterisk: Don't leak memory or reset state if DTLS configuration is set multiple times.

Modified:
    branches/12/res/res_rtp_asterisk.c

Modified: branches/12/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_rtp_asterisk.c?view=diff&rev=417705&r1=417704&r2=417705
==============================================================================
--- branches/12/res/res_rtp_asterisk.c (original)
+++ branches/12/res/res_rtp_asterisk.c Tue Jul  1 09:40:24 2014
@@ -900,6 +900,10 @@
 
 	if (!ast_rtp_engine_srtp_is_registered()) {
 		return -1;
+	}
+
+	if (rtp->ssl_ctx) {
+		return 0;
 	}
 
 	if (!(rtp->ssl_ctx = SSL_CTX_new(DTLSv1_method()))) {




More information about the asterisk-commits mailing list