Skip to content

Commit

Permalink
Fix bad cast in SSHKDF (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored Oct 11, 2023
1 parent ff693cf commit ed4e08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/fipsmodule/sshkdf/sshkdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ int SSHKDF(const EVP_MD *evp_md,
{
EVP_MD_CTX *md = NULL;
uint8_t digest[EVP_MAX_MD_SIZE];
size_t digest_size = 0;
unsigned int digest_size = 0;
size_t cursize = 0;
int ret = 0;

Expand Down Expand Up @@ -72,7 +72,7 @@ int SSHKDF(const EVP_MD *evp_md,
goto out;
}

if (!EVP_DigestFinal_ex(md, digest, (unsigned int *)&digest_size)) {
if (!EVP_DigestFinal_ex(md, digest, &digest_size)) {
goto out;
}

Expand Down

0 comments on commit ed4e08f

Please sign in to comment.