mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 18:46:16 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user