Skip to content
Snippets Groups Projects
Commit 97be2ac7 authored by Olle Johansson's avatar Olle Johansson
Browse files

- If peer that register fails ACL, fail him

- 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
parent 11cb7ce7
Branches
Tags
No related merge requests found
...@@ -8150,8 +8150,10 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr ...@@ -8150,8 +8150,10 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr
build_contact(p); build_contact(p);
peer = find_peer(name, NULL, 1); peer = find_peer(name, NULL, 1);
if (!(peer && ast_apply_ha(peer->ha, sin))) { if (!(peer && ast_apply_ha(peer->ha, sin))) {
/* Peer fails ACL check */
if (peer) if (peer)
ASTOBJ_UNREF(peer, sip_destroy_peer); ASTOBJ_UNREF(peer, sip_destroy_peer);
peer = NULL;
} }
if (peer) { if (peer) {
/* Set Frame packetization */ /* Set Frame packetization */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment