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\","