mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-20 10:57:18 -07:00
Merged revisions 78139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78139 | tilghman | 2007-08-04 22:29:01 -0500 (Sat, 04 Aug 2007) | 2 lines If peer is not found, the error message is misleading (should be peer not found, not ACL failure) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+5
-3
@@ -9130,10 +9130,12 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr
|
||||
peer = find_peer(name, NULL, 1);
|
||||
if (!(peer && ast_apply_ha(peer->ha, sin))) {
|
||||
/* Peer fails ACL check */
|
||||
if (peer)
|
||||
if (peer) {
|
||||
unref_peer(peer);
|
||||
peer = NULL;
|
||||
res = AUTH_ACL_FAILED;
|
||||
peer = NULL;
|
||||
res = AUTH_ACL_FAILED;
|
||||
} else
|
||||
res = AUTH_NOT_FOUND;
|
||||
}
|
||||
if (peer) {
|
||||
/* Set Frame packetization */
|
||||
|
||||
Reference in New Issue
Block a user