Increase buffer size for cnonce

PUBLISHED_FROM=0dcb2aba0c00da6803227c775e2178230c195f5f
This commit is contained in:
Deomid Ryabkov authored and rojer committed 2016-02-29 19:14:53 +00:00
1 parent 09dde636d2
commit 8f0374569e
1 file changed
+1 -1
+1 -1
View File
@@ -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 */