Skip to content

Commit

Permalink
Merge pull request #2154 from jan-cerny/s390x_filehash
Browse files Browse the repository at this point in the history
Fix a cast
  • Loading branch information
evgenyz authored Aug 20, 2024
2 parents 8935e10 + 106ffad commit ff8e68c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OVAL/probes/crapi/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ static int crapi_digest_update(struct crapi_digest_ctx *ctx, void *bptr, size_t
static int crapi_digest_fini(struct crapi_digest_ctx *ctx, crapi_alg_t alg)
{
#if defined(HAVE_NSS3)
HASH_End (ctx->ctx, ctx->dst, (unsigned int *)ctx->size, *ctx->size);
unsigned int result_len;
HASH_End(ctx->ctx, ctx->dst, &result_len, *ctx->size);
*ctx->size = result_len;
HASH_Destroy (ctx->ctx);
#elif defined(HAVE_GCRYPT)
void *buffer;
Expand Down

0 comments on commit ff8e68c

Please sign in to comment.