mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Fix registration bug with new astobj (bug #3184)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5029,7 +5029,8 @@ static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si
|
||||
build_contact(p);
|
||||
peer = find_peer(name, NULL);
|
||||
if (!(peer && ast_apply_ha(peer->ha, sin))) {
|
||||
ASTOBJ_UNREF(peer,sip_destroy_peer);
|
||||
if (peer)
|
||||
ASTOBJ_UNREF(peer,sip_destroy_peer);
|
||||
}
|
||||
if (peer) {
|
||||
if (!ast_test_flag(peer, SIP_DYNAMIC)) {
|
||||
|
Reference in New Issue
Block a user