From: Olle Johansson Date: Tue, 31 Oct 2006 09:17:53 +0000 (+0000) Subject: If peer fails ACL check, fail peer at REGISTER X-Git-Tag: 1.4.0-beta4~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56f2cab81c0aec979922c3dd6c0460bb6f3778a1;p=thirdparty%2Fasterisk.git If peer fails ACL check, fail peer at REGISTER git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46606 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d994e97311..b5f15cff49 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8105,8 +8105,10 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr build_contact(p); peer = find_peer(name, NULL, 1); if (!(peer && ast_apply_ha(peer->ha, sin))) { + /* Peer fails ACL check */ if (peer) ASTOBJ_UNREF(peer, sip_destroy_peer); + peer = NULL; } if (peer) { /* Set Frame packetization */