[asterisk-commits] mjordan: branch group/asterisk-13-sipit r424100 - /team/group/asterisk-13-sip...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 29 15:51:14 CDT 2014


Author: mjordan
Date: Mon Sep 29 15:51:12 2014
New Revision: 424100

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424100
Log:
pjsip_distributor: Prevent crash when pjproject passes us an empty message

Modified:
    team/group/asterisk-13-sipit/res/res_pjsip/pjsip_distributor.c

Modified: team/group/asterisk-13-sipit/res/res_pjsip/pjsip_distributor.c
URL: http://svnview.digium.com/svn/asterisk/team/group/asterisk-13-sipit/res/res_pjsip/pjsip_distributor.c?view=diff&rev=424100&r1=424099&r2=424100
==============================================================================
--- team/group/asterisk-13-sipit/res/res_pjsip/pjsip_distributor.c (original)
+++ team/group/asterisk-13-sipit/res/res_pjsip/pjsip_distributor.c Mon Sep 29 15:51:12 2014
@@ -99,6 +99,11 @@
 	pjsip_dialog *dlg;
 	pj_str_t *local_tag;
 	pj_str_t *remote_tag;
+
+	if (!rdata->msg_info.msg) {
+		/* EEEK */
+		return NULL;
+	}
 
 	if (rdata->msg_info.msg->type == PJSIP_REQUEST_MSG) {
 		local_tag = &rdata->msg_info.to->tag;




More information about the asterisk-commits mailing list