Make insecure perform as expected
authorMark Spencer <markster@digium.com>
Thu, 8 May 2003 03:32:59 +0000 (03:32 +0000)
committerMark Spencer <markster@digium.com>
Thu, 8 May 2003 03:32:59 +0000 (03:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@974 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0d5449d..a3ff9f1 100755 (executable)
@@ -3303,7 +3303,7 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
                peer = peerl.peers;
                while(peer) {
                        if (!inaddrcmp(&peer->addr, &p->recv) || 
                peer = peerl.peers;
                while(peer) {
                        if (!inaddrcmp(&peer->addr, &p->recv) || 
-                               (p->insecure && (peer->addr.sin_addr.s_addr == p->recv.sin_addr.s_addr))) {
+                               (peer->insecure && (peer->addr.sin_addr.s_addr == p->recv.sin_addr.s_addr))) {
                                /* Take the peer */
                                p->nat = peer->nat;
                                if (p->rtp) {
                                /* Take the peer */
                                p->nat = peer->nat;
                                if (p->rtp) {