[asterisk-commits] oej: trunk r217368 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 9 05:39:45 CDT 2009


Author: oej
Date: Wed Sep  9 05:39:43 2009
New Revision: 217368

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217368
Log:
Not having any TLS session to write to is a serious XMIT_ERROR. 

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=217368&r1=217367&r2=217368
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Sep  9 05:39:43 2009
@@ -3472,6 +3472,7 @@
 			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");




More information about the asterisk-commits mailing list