瀏覽代碼

auc(k): fix error in authentification: Digest should be compared case insensitive

Henning Westerholt 15 年之前
父節點
當前提交
3f5909fd3c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_k/uac/auth_hdr.c

+ 1 - 1
modules_k/uac/auth_hdr.c

@@ -112,7 +112,7 @@ int parse_authenticate_body( str *body, struct authenticate_body *auth)
 	while (p<end && isspace((int)*p)) p++;
 	if (p+AUTHENTICATE_DIGEST_LEN>=end )
 		goto parse_error;
-	if (strncmp(p,AUTHENTICATE_DIGEST_S,AUTHENTICATE_DIGEST_LEN)!=0)
+	if (strncasecmp(p,AUTHENTICATE_DIGEST_S,AUTHENTICATE_DIGEST_LEN)!=0)
 		goto parse_error;
 	p += AUTHENTICATE_DIGEST_LEN;
 	if (!isspace((int)*p))