From 3d0294674056f3c7bbe648e90d15bf67f515785c Mon Sep 17 00:00:00 2001 From: Christoph Huber Date: Wed, 30 Aug 2023 13:51:35 +0200 Subject: [PATCH] httpauth: change hash length variable to size_t --- src/httpauth/digest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpauth/digest.c b/src/httpauth/digest.c index 72012a94e..9644245c6 100644 --- a/src/httpauth/digest.c +++ b/src/httpauth/digest.c @@ -439,7 +439,7 @@ static int generate_nonce(char **pnonce, const time_t ts, struct mbuf *mb = NULL; char *nonce = NULL; uint8_t *hash = NULL; - uint8_t hashlen = SHA256_DIGEST_LENGTH; + size_t hashlen = SHA256_DIGEST_LENGTH; int err = 0; DEBUG_INFO("[%s:%d-%s] Enter\n", __FILE__, __LINE__, __func__);