dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 319142 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r319142 | mnicholson | 2011-05-16 10:53:26 -0500 (Mon, 16 May 2011) | 8 lines
  
  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
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@319143 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mnicholson 2011-05-16 15:54:52 +00:00
parent b77d873929
commit a8995d01a9
1 changed files with 1 additions and 1 deletions

View File

@ -2758,7 +2758,7 @@ static void *_sip_tcp_helper_thread(struct sip_pvt *pvt, struct ast_tcptls_sessi
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);
}