summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2009-09-09 10:39:43 +0000
committerOlle Johansson <oej@edvina.net>2009-09-09 10:39:43 +0000
commitcc0170852071f079c1ac025fadee686e014913cd (patch)
tree0c3233bebf1125b445c6eac52ec17f9b73085b1a
parentb9b6639694926592c7c1e0e538d8ec3f12fc7f94 (diff)
Not having any TLS session to write to is a serious XMIT_ERROR.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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 a864c7075..a497317a2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3472,6 +3472,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");