]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Close the proper tcptls_session when session creation fails.
authorMark Michelson <mmichelson@digium.com>
Thu, 10 May 2012 16:13:06 +0000 (16:13 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 10 May 2012 16:13:06 +0000 (16:13 +0000)
(issue AST-998)
Reported by: Thomas Arimont
Tested by: Thomas Arimont
........

Merged revisions 366052 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@366053 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0350cfaff0f0a9801deedba2c5cd2e4e4aa844f5..b4cda7e0fe7a8cb4f2e179b6d4a028575f17a4f6 100644 (file)
@@ -26441,7 +26441,7 @@ create_tcptls_session_fail:
                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;