[svn-commits] mnicholson: branch 1.8 r319142 - /branches/1.8/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon May 16 10:53:33 CDT 2011


Author: mnicholson
Date: Mon May 16 10:53:26 2011
New Revision: 319142

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319142
Log:
Make sure tcptls_session exists before dereferencing it.

(closes issue #19192)
Reported by: stknob
Patches:
      10-tcptls-unreachable-peer-segfault.patch uploaded by Chainsaw (license 723)
Tested by: vois, Chainsaw

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=319142&r1=319141&r2=319142
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Mon May 16 10:53:26 2011
@@ -2740,7 +2740,7 @@
 	ast_debug(2, "Shutting down thread for %s server\n", tcptls_session->ssl ? "SSL" : "TCP");
 
 cleanup:
-	if (!tcptls_session->client && !authenticated) {
+	if (tcptls_session && !tcptls_session->client && !authenticated) {
 		ast_atomic_fetchadd_int(&unauth_sessions, -1);
 	}
 




More information about the svn-commits mailing list