]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent potential infinite outbound authentication loops in registration.
authorAsterisk Autobuilder <asteriskteam@digium.com>
Fri, 19 Dec 2014 20:55:46 +0000 (20:55 +0000)
committerAsterisk Autobuilder <asteriskteam@digium.com>
Fri, 19 Dec 2014 20:55:46 +0000 (20:55 +0000)
commit213b9452a35326eb059dbb21c29c4d8bd489bfdb
tree85ba19820a622c64dddfe4a53c1cf6d41be886c5
parentb5296181ad4dabe23fe3e369222a786b0b65fc2b
Prevent potential infinite outbound authentication loops in registration.

Prior to this patch, Asterisk would always respond to 401 responses to
registration attempts by trying to provide a registration with authentication
credentials. Even if subsequent attempts were rejected with 401 responses,
Asterisk would continue this behavior. If authentication credentials were
incorrect, this could continue forever.

With this patch, we keep track of whether we have attempted authentication
on an outbound registration attempt. If we already have, we don not try
again until the next attempt. This prevents the infinite loop scenario.

Review: https://reviewboard.asterisk.org/r/4273
........

Merged revisions 429761 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@429869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_outbound_registration.c