Really don't authenticate if we're not supposed to authenticate (bug #1738)
authorMark Spencer <markster@digium.com>
Fri, 28 May 2004 15:47:57 +0000 (15:47 +0000)
committerMark Spencer <markster@digium.com>
Fri, 28 May 2004 15:47:57 +0000 (15:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3102 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 14abfcf..d653361 100755 (executable)
@@ -4842,7 +4842,7 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
                                strcpy(p->peersecret, "");
                                strcpy(p->peermd5secret, "");
                        }
-                       if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, peer->secret, peer->md5secret, cmd, uri, reliable, ignore))) {
+                       if (!(res = check_auth(p, req, p->randdata, sizeof(p->randdata), peer->name, p->peersecret, p->peermd5secret, cmd, uri, reliable, ignore))) {
                                p->canreinvite = peer->canreinvite;
                                strncpy(p->peername, peer->name, sizeof(p->peername) - 1);
                                strncpy(p->authname, peer->name, sizeof(p->authname) - 1);