Commit 8f037456 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by rojer

Increase buffer size for cnonce

    PUBLISHED_FROM=0dcb2aba0c00da6803227c775e2178230c195f5f
parent 09dde636
......@@ -5928,7 +5928,7 @@ static int mg_http_check_digest_auth(struct http_message *hm,
const char *auth_domain, FILE *fp) {
struct mg_str *hdr;
char buf[128], f_user[sizeof(buf)], f_ha1[sizeof(buf)], f_domain[sizeof(buf)];
char user[50], cnonce[20], response[40], uri[200], qop[20], nc[20], nonce[30];
char user[50], cnonce[33], response[40], uri[200], qop[20], nc[20], nonce[30];
char expected_response[33];
/* Parse "Authorization:" header, fail fast on parse error */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment