From 207485c74dffee088f13a0d5fe7d26f68af45128 Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Wed, 9 Sep 2009 11:02:28 +0000 Subject: [PATCH] Merged revisions 217368 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r217368 | oej | 2009-09-09 12:39:43 +0200 (Ons, 09 Sep 2009) | 2 lines Not having any TLS session to write to is a serious XMIT_ERROR. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@217370 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b53758fd6e..7dccd95bda 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2937,6 +2937,7 @@ static int __sip_xmit(struct sip_pvt *p, struct ast_str *data, int len) res = ast_tcptls_server_write(p->socket.tcptls_session, data->str, len); } else { ast_debug(2, "No p->socket.tcptls_session->f len=%d\n", len); + return XMIT_ERROR; } } else { ast_debug(2, "Socket type is TCP but no tcptls_session is present to write to\n"); -- 2.47.2