]> 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:10:18 +0000 (16:10 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 10 May 2012 16:10:18 +0000 (16:10 +0000)
(issue AST-998)
Reported by: Thomas Arimont
Tested by: Thomas Arimont

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

channels/chan_sip.c

index 1463fe62b82c6f90d21df65299ed924e390c3bc1..29fbd7b846d73be0ae0cb15cb99d19be807b012c 100644 (file)
@@ -25590,7 +25590,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;