Don't ignore the result of find_peer() when looking for a peer by IP in check_peer_ok().
authorRussell Bryant <russell@russellbryant.com>
Sat, 1 Nov 2008 23:46:12 +0000 (23:46 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 1 Nov 2008 23:46:12 +0000 (23:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153403 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 02061bf..5d04495 100644 (file)
@@ -12363,7 +12363,7 @@ static enum check_auth_result check_peer_ok(struct sip_pvt *p, char *of,
 
                /* Then find devices based on IP */
                if (!peer) {
 
                /* Then find devices based on IP */
                if (!peer) {
-                       find_peer(NULL, &p->recv, TRUE, FINDALLDEVICES, FALSE);
+                       peer = find_peer(NULL, &p->recv, TRUE, FINDALLDEVICES, FALSE);
                }
        }
 
                }
        }