Skip to content

Commit

Permalink
pkcs15-openpgp.c - clear pointes just in case
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   pkcs15init/pkcs15-openpgp.c
  • Loading branch information
dengert committed Aug 29, 2024
1 parent 65e986c commit d0cd2ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pkcs15init/pkcs15-openpgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ static int openpgp_generate_key_rsa(sc_card_t *card, sc_pkcs15_object_t *obj,

err:
free(key_info.u.rsa.modulus);
key_info.u.rsa.modulus = NULL;
free(key_info.u.rsa.exponent);
key_info.u.rsa.exponent = NULL;
LOG_FUNC_RETURN(ctx, r);
}

Expand Down

0 comments on commit d0cd2ef

Please sign in to comment.