aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-31 09:17:53 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-31 09:17:53 +0000
commit0eab0b96505d21b6d4092c133eec238c85253624 (patch)
tree8214d993fca519c7353d70636c324391eb5a9eaf /channels
parent816e4dcc7dbc78ba1487c87891cb9f79aed9ddbf (diff)
If peer fails ACL check, fail peer at REGISTER
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46606 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d994e9731..b5f15cff4 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 */