aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-09 11:33:13 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-09 11:33:13 +0000
commita7310c7c56bc01a53b521a3af8af0de9e9583946 (patch)
tree819d4c5e809cb08eef9ba801e23e02869ec24e06 /channels
parent2f92e1babeb823ca5e12aa1937c1fa48692458e5 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@217405 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2ea01b997..cb62d89f9 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");