summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2012-05-10 16:22:36 +0000
committerMark Michelson <mmichelson@digium.com>2012-05-10 16:22:36 +0000
commit3430da58e9f168e608e46133225e0fc81589f6ef (patch)
tree0dbc8d2d164979e5e51154c9848e9e5480b16911 /channels/chan_sip.c
parentd1e7473649afce5db9ef9e50efd56bb27c6e8f62 (diff)
Close the proper tcptls_session when session creation fails.
(issue AST-998) Reported by: Thomas Arimont Tested by: Thomas Arimont ........ Merged revisions 366052 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 366053 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@366062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 908721ae2..c7c6a38ca 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -26625,7 +26625,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;