Skip to content

Commit cd5ddeb

Browse files
committed
Clear ctx in wolfSSL_EVP_DigestInit
1 parent c230e10 commit cd5ddeb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/src/evp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10505,6 +10505,8 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
1050510505
return WOLFSSL_FAILURE;
1050610506
}
1050710507

10508+
wolfSSL_EVP_MD_CTX_init(ctx);
10509+
1050810510
/* Set to 0 if no match */
1050910511
ctx->macType = EvpMd2MacType(md);
1051010512
if (md == NULL) {

0 commit comments

Comments
 (0)