- If peer that register fails ACL, fail him
authorOlle Johansson <oej@edvina.net>
Tue, 31 Oct 2006 09:24:55 +0000 (09:24 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 31 Oct 2006 09:24:55 +0000 (09:24 +0000)
- Remove the 1.2 props I've set by mistake earlier

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46609 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 1274393..9e752ff 100644 (file)
@@ -8150,8 +8150,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 */