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:
parent
b898cdcefb
commit
369b421b78
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue