diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-31 09:13:34 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-31 09:13:34 +0000 |
commit | 2da73b8f63002a433326584fef0d6348b8b73474 (patch) | |
tree | e3f844670e41bf5f31f67be87d1db77797ab169a | |
parent | 5f894e8f4884ef8171073ec7401f2ecdc117cd85 (diff) |
If peer fails ACL check, fail the REGISTER attempt
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@46604 f38db490-d61c-443f-a65b-d21fe96a405b
-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 08e340866..2ec0cb336 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6566,8 +6566,10 @@ static int register_verify(struct sip_pvt *p, struct sockaddr_in *sin, struct si 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) { if (!ast_test_flag(&peer->flags_page2, SIP_PAGE2_DYNAMIC)) { |