aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");