[asterisk-commits] mnicholson: branch 1.6.2 r319141 - /branches/1.6.2/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon May 16 10:52:03 CDT 2011
Author: mnicholson
Date: Mon May 16 10:51:53 2011
New Revision: 319141
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319141
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.6.2/channels/chan_sip.c
Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=319141&r1=319140&r2=319141
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Mon May 16 10:51:53 2011
@@ -3213,7 +3213,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 asterisk-commits
mailing list