Skip to content

Commit

Permalink
lib/fetch: pass correctly sized array just in case, found by lgtm.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncaen committed Feb 7, 2021
1 parent d39c515 commit 2b04789
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fetch/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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\","
Expand Down

0 comments on commit 2b04789

Please sign in to comment.