diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-06 08:32:11 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-06 08:32:11 +0000 |
commit | bace22e16154833f1d1d2178308e81b803e83e56 (patch) | |
tree | 65a188a012a6ef1b63fb957b680c9975c7393c14 /channels | |
parent | b31e96bcd6443b69c270fe1db7ee62bbb00c0a7e (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@128379 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d6b7cdfac..9d3d5de10 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) { |