From: Russell Bryant Date: Sat, 1 Nov 2008 23:46:12 +0000 (+0000) Subject: Don't ignore the result of find_peer() when looking for a peer by IP in check_peer_ok(). X-Git-Tag: 1.6.2.0-beta1~989 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=981c2d03b69674f6ccd4b21d255880c68fb1bc42;p=thirdparty%2Fasterisk.git Don't ignore the result of find_peer() when looking for a peer by IP in check_peer_ok(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153403 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 02061bf180..5d04495d11 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) { - find_peer(NULL, &p->recv, TRUE, FINDALLDEVICES, FALSE); + peer = find_peer(NULL, &p->recv, TRUE, FINDALLDEVICES, FALSE); } }