From: Mark Spencer Date: Fri, 28 May 2004 15:47:57 +0000 (+0000) Subject: Really don't authenticate if we're not supposed to authenticate (bug #1738) X-Git-Tag: 1.0.0-rc1~353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2cc6b01be28d13745cae5618579c8367477f4c1;p=thirdparty%2Fasterisk.git Really don't authenticate if we're not supposed to authenticate (bug #1738) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3102 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 14abfcf1dc..d6533614e8 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);