diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-31 09:17:53 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-31 09:17:53 +0000 |
commit | 0eab0b96505d21b6d4092c133eec238c85253624 (patch) | |
tree | 8214d993fca519c7353d70636c324391eb5a9eaf /channels | |
parent | 816e4dcc7dbc78ba1487c87891cb9f79aed9ddbf (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.c | 2 |
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 */ |