[asterisk-commits] file: branch 12 r400284 - /branches/12/res/res_pjsip_t38.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 2 13:42:43 CDT 2013


Author: file
Date: Wed Oct  2 13:42:41 2013
New Revision: 400284

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400284
Log:
Fix a crash in res_pjsip_t38 caused by the wrong assumption that a session will always have a channel.

When starting up or shutting down this assumption is false.

Modified:
    branches/12/res/res_pjsip_t38.c

Modified: branches/12/res/res_pjsip_t38.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_t38.c?view=diff&rev=400284&r1=400283&r2=400284
==============================================================================
--- branches/12/res/res_pjsip_t38.c (original)
+++ branches/12/res/res_pjsip_t38.c Wed Oct  2 13:42:41 2013
@@ -446,7 +446,8 @@
 		.event_cb = t38_framehook,
 	};
 
-	if ((ast_channel_state(session->channel) == AST_STATE_UP) || !session->endpoint->media.t38.enabled) {
+	if (!session->channel || (ast_channel_state(session->channel) == AST_STATE_UP) ||
+	    !session->endpoint->media.t38.enabled) {
 		return;
 	}
 




More information about the asterisk-commits mailing list