make SIP registration accept RFC non-compliant Digest headers (bug #4577)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2005-06-22 19:10:39 +00:00
parent b898cdcefb
commit 369b421b78
1 changed files with 1 additions and 1 deletions

View File

@ -7926,7 +7926,7 @@ static int reply_digest(struct sip_pvt *p, struct sip_request *req,
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;
}