From 1dac9239aab701755bee4127d012ad934d7724bb Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Sun, 7 Feb 2021 01:43:16 +0100 Subject: [PATCH] lib/fetch: pass correctly sized array just in case, found by lgtm.com --- lib/fetch/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fetch/http.c b/lib/fetch/http.c index 4073cd011..faa3a6239 100644 --- a/lib/fetch/http.c +++ b/lib/fetch/http.c @@ -1315,6 +1315,7 @@ http_digest_auth(conn_t *conn, const char *hdr, http_auth_challenge_t *c, { HASHHEX HA1; HASHHEX digest; + HASHHEX empty = {0}; int r; char noncecount[10]; char cnonce[40]; @@ -1347,7 +1348,7 @@ http_digest_auth(conn_t *conn, const char *hdr, http_auth_challenge_t *c, parms->password, c->nonce, cnonce, HA1); DEBUGF("HA1: [%s]\n", HA1); DigestCalcResponse(HA1, c->nonce, noncecount, cnonce, c->qop, - "GET", url->doc, "", digest); + "GET", url->doc, empty, digest); if (c->qop[0]) { r = http_cmd(conn, "%s: Digest username=\"%s\",realm=\"%s\","