[Asterisk-cvs] asterisk/channels chan_sip.c,1.402,1.403
markster at lists.digium.com
markster at lists.digium.com
Fri May 28 11:32:58 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv9566/channels
Modified Files:
chan_sip.c
Log Message:
Really don't authenticate if we're not supposed to authenticate (bug #1738)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.402
retrieving revision 1.403
diff -u -d -r1.402 -r1.403
--- chan_sip.c 27 May 2004 22:12:55 -0000 1.402
+++ chan_sip.c 28 May 2004 15:47:57 -0000 1.403
@@ -4842,7 +4842,7 @@
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);
More information about the svn-commits
mailing list