[asterisk-commits] file: trunk r404372 - in /trunk: ./ res/res_pjsip/pjsip_outbound_auth.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 19 12:00:35 CST 2013


Author: file
Date: Thu Dec 19 12:00:33 2013
New Revision: 404372

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404372
Log:
res_pjsip: Ignore 401/407 responses for transactions and dialogs we don't know about.

Under normal conditions it is unlikely we will ever receive a response for a transaction
or dialog we don't know about but if any are received ignore them.
........

Merged revisions 404371 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/res/res_pjsip/pjsip_outbound_auth.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/res/res_pjsip/pjsip_outbound_auth.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip/pjsip_outbound_auth.c?view=diff&rev=404372&r1=404371&r2=404372
==============================================================================
--- trunk/res/res_pjsip/pjsip_outbound_auth.c (original)
+++ trunk/res/res_pjsip/pjsip_outbound_auth.c Thu Dec 19 12:00:33 2013
@@ -54,9 +54,11 @@
 
 	tsx = pjsip_rdata_get_tsx(rdata);
 	dlg = pjsip_rdata_get_dlg(rdata);
-	ast_assert(dlg != NULL && tsx != NULL);
+	if (!dlg || !tsx) {
+		return PJ_FALSE;
+	}
+
 	endpoint = ast_sip_dialog_get_endpoint(dlg);
-
 	if (!endpoint) {
 		return PJ_FALSE;
 	}




More information about the asterisk-commits mailing list