diff options
author | Joshua Colp <jcolp@digium.com> | 2013-12-19 18:00:33 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-12-19 18:00:33 +0000 |
commit | 433c6f010f64002c949f4257c4b54b13f6a8b4a3 (patch) | |
tree | 027a1dda2a982312240c8eb96f5f115faa39817e /res/res_pjsip | |
parent | 8402cd4cd9d0f9a3f56534ec0ea4922c06d925c6 (diff) |
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip')
-rw-r--r-- | res/res_pjsip/pjsip_outbound_auth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/res/res_pjsip/pjsip_outbound_auth.c b/res/res_pjsip/pjsip_outbound_auth.c index 5996d919b..28ca3ec8a 100644 --- a/res/res_pjsip/pjsip_outbound_auth.c +++ b/res/res_pjsip/pjsip_outbound_auth.c @@ -54,9 +54,11 @@ static pj_bool_t outbound_auth(pjsip_rx_data *rdata) tsx = pjsip_rdata_get_tsx(rdata); dlg = pjsip_rdata_get_dlg(rdata); - ast_assert(dlg != NULL && tsx != NULL); - endpoint = ast_sip_dialog_get_endpoint(dlg); + if (!dlg || !tsx) { + return PJ_FALSE; + } + endpoint = ast_sip_dialog_get_endpoint(dlg); if (!endpoint) { return PJ_FALSE; } |