From: Olle Johansson Date: Wed, 9 Sep 2009 11:33:13 +0000 (+0000) Subject: Merged revisions 217368 via svnmerge from X-Git-Tag: 1.6.0.16~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5254a6180bdbf62ca0aa5436c7dd21879a088c79;p=thirdparty%2Fasterisk.git 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.0@217405 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2ea01b9975..cb62d89f97 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2717,6 +2717,7 @@ static int __sip_xmit(struct sip_pvt *p, char *data, int len) res = ast_tcptls_server_write(p->socket.tcptls_session, data, 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");