mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-22 21:36:28 +00:00
fix a bug found during a recent upgrade
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -11967,7 +11967,11 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int
|
||||
|
||||
if (!realtime)
|
||||
/* Note we do NOT use find_peer here, to avoid realtime recursion */
|
||||
peer = ASTOBJ_CONTAINER_FIND_UNLINK(&peerl, name);
|
||||
/* We also use a case-sensitive comparison (unlike find_peer) so
|
||||
that case changes made to the peer name will be properly handled
|
||||
during reload
|
||||
*/
|
||||
peer = ASTOBJ_CONTAINER_FIND_UNLINK_FULL(&peerl, name, name, 0, 0, strcmp);
|
||||
|
||||
if (peer) {
|
||||
/* Already in the list, remove it and it will be added back (or FREE'd) */
|
||||
|
Reference in New Issue
Block a user