[asterisk-commits] file: branch 12 r404371 - /branches/12/res/res_pjsip/pjsip_outbound_auth.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 19 11:58:48 CST 2013
Author: file
Date: Thu Dec 19 11:58:46 2013
New Revision: 404371
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404371
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.
Modified:
branches/12/res/res_pjsip/pjsip_outbound_auth.c
Modified: branches/12/res/res_pjsip/pjsip_outbound_auth.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip/pjsip_outbound_auth.c?view=diff&rev=404371&r1=404370&r2=404371
==============================================================================
--- branches/12/res/res_pjsip/pjsip_outbound_auth.c (original)
+++ branches/12/res/res_pjsip/pjsip_outbound_auth.c Thu Dec 19 11:58:46 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