make SIP registration accept RFC non-compliant Digest headers (bug #4577)
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 22 Jun 2005 19:10:39 +0000 (19:10 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 22 Jun 2005 19:10:39 +0000 (19:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5970 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d15f3dd..e410cfe 100755 (executable)
@@ -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;
        }