mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Don't try to remove peers without IPs from peers_by_ip
(closes issue ASTERISK-18696) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@341088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -26607,7 +26607,9 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
|
|||||||
found++;
|
found++;
|
||||||
/* we've unlinked the peer from the peers container but not unlinked from the peers_by_ip container yet
|
/* we've unlinked the peer from the peers container but not unlinked from the peers_by_ip container yet
|
||||||
this leads to a wrong refcounter and the peer object is never destroyed */
|
this leads to a wrong refcounter and the peer object is never destroyed */
|
||||||
|
if (!ast_sockaddr_isnull(&peer->addr)) {
|
||||||
ao2_t_unlink(peers_by_ip, peer, "ao2_unlink peer from peers_by_ip table");
|
ao2_t_unlink(peers_by_ip, peer, "ao2_unlink peer from peers_by_ip table");
|
||||||
|
}
|
||||||
if (!(peer->the_mark))
|
if (!(peer->the_mark))
|
||||||
firstpass = 0;
|
firstpass = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user