aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-09 11:02:28 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2009-09-09 11:02:28 +0000
commitdda75c7c9240df202ea8f7f3343be1e05297ca4f (patch)
tree8ff7fd7868fcc1af1ba13163706becab2f0edd1d /channels
parent4b3ce3463c153fb59ed444229cfe7142de13171b (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.1@217370 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 b53758fd6..7dccd95bd 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");