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
1.4
Olle Johansson 20 years ago
parent 83d0334d53
commit 56f2cab81c

@ -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 */

Loading…
Cancel
Save