mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Fix severe problem with my previous commit of "kill-the-user". Russell saw a problem with this
code, but not the correct problem. Thanks, anyway! ;-) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@128379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -11672,8 +11672,8 @@ static enum check_auth_result check_peer_ok(struct sip_pvt *p, char *of,
|
||||
/* First find device on name */
|
||||
peer = find_peer(of, NULL, TRUE, FALSE);
|
||||
|
||||
/* Then find device on IP (if it's not a SUBSCRIBE) */
|
||||
if (sipmethod != SIP_SUBSCRIBE)
|
||||
/* If not found, then find device on IP (if it's not a SUBSCRIBE) */
|
||||
if (!peer && sipmethod != SIP_SUBSCRIBE)
|
||||
find_peer(NULL, &p->recv, TRUE, FALSE);
|
||||
|
||||
if (!peer) {
|
||||
|
||||
Reference in New Issue
Block a user