summaryrefslogtreecommitdiff
path: root/lib/sha256.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-09-20 15:27:23 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2023-09-20 16:07:24 +0200
commit448d690a354c3ea481aba6254a285937d843cf81 (patch)
treec3c0397bba55d7629b9a0311708096791aecc4ef /lib/sha256.c
parent592011b25160ed6bc476e6855784ed2a7c8f3bc6 (diff)
lib: random make-coverity-happy nits
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/sha256.c')
-rw-r--r--lib/sha256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index ccf260fa7b..08e08eb06b 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -344,7 +344,7 @@ void HMAC__SHA256_Final(unsigned char digest[32], HMAC_SHA256_CTX *ctx)
void PBKDF2_SHA256(const uint8_t *passwd, size_t passwdlen, const uint8_t *salt,
size_t saltlen, uint64_t c, uint8_t *buf, size_t dkLen)
{
- HMAC_SHA256_CTX PShctx, hctx;
+ HMAC_SHA256_CTX PShctx = {}, hctx;
size_t i;
uint8_t ivec[4];
uint8_t U[32];