Skip to content

Commit

Permalink
pkcs15-lib.c - fix fuzzer caused memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dengert committed Sep 7, 2024
1 parent 8a1cb82 commit cdfa5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkcs15init/pkcs15-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ sc_pkcs15init_generate_key(struct sc_pkcs15_card *p15card, struct sc_profile *pr
r = check_keygen_params_consistency(p15card->card,
algorithm, &keygen_args->prkey_args,
&keybits);
LOG_TEST_RET(ctx, r, "Invalid key size");
LOG_TEST_GOTO_ERR(ctx, r, "Invalid key size");

if (check_key_compatibility(p15card, algorithm,
&keygen_args->prkey_args.key, keygen_args->prkey_args.x509_usage,
Expand Down

0 comments on commit cdfa5b8

Please sign in to comment.