[asterisk-commits] mmichelson: branch 1.8 r366052 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 10 11:10:23 CDT 2012


Author: mmichelson
Date: Thu May 10 11:10:18 2012
New Revision: 366052

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=366052
Log:
Close the proper tcptls_session when session creation fails.

(issue ASTERISK-19278)


Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=366052&r1=366051&r2=366052
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Thu May 10 11:10:18 2012
@@ -25590,7 +25590,7 @@
 		ao2_t_ref(ca, -1, "failed to create client, getting rid of client tcptls_session arguments");
 	}
 	if (s->tcptls_session) {
-		ast_tcptls_close_session_file(tcptls_session);
+		ast_tcptls_close_session_file(s->tcptls_session);
 		s->fd = -1;
 		ao2_ref(s->tcptls_session, -1);
 		s->tcptls_session = NULL;




More information about the asterisk-commits mailing list