[Asterisk-cvs] asterisk/channels chan_sip.c,1.768,1.769
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Wed Jun 22 15:10:02 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv14903/channels
Modified Files:
chan_sip.c
Log Message:
make SIP registration accept RFC non-compliant Digest headers (bug #4577)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.768
retrieving revision 1.769
diff -u -d -r1.768 -r1.769
--- chan_sip.c 21 Jun 2005 01:27:54 -0000 1.768
+++ chan_sip.c 22 Jun 2005 19:10:39 -0000 1.769
@@ -7926,7 +7926,7 @@
ast_copy_string(tmp, get_header(req, header), sizeof(tmp));
if (ast_strlen_zero(tmp))
return -1;
- if (strstr(tmp, "Digest ") != tmp) {
+ if (strncasecmp(tmp, "Digest ", strlen("Digest "))) {
ast_log(LOG_WARNING, "missing Digest.\n");
return -1;
}
More information about the svn-commits
mailing list