mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
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
This commit is contained in:
@@ -4842,7 +4842,7 @@ static int check_user(struct sip_pvt *p, struct sip_request *req, char *cmd, cha
|
|||||||
strcpy(p->peersecret, "");
|
strcpy(p->peersecret, "");
|
||||||
strcpy(p->peermd5secret, "");
|
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;
|
p->canreinvite = peer->canreinvite;
|
||||||
strncpy(p->peername, peer->name, sizeof(p->peername) - 1);
|
strncpy(p->peername, peer->name, sizeof(p->peername) - 1);
|
||||||
strncpy(p->authname, peer->name, sizeof(p->authname) - 1);
|
strncpy(p->authname, peer->name, sizeof(p->authname) - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user