Skip to content

Commit

Permalink
Fix crash reported by CIFuzz in starcos_has_esign_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefd authored and Jakuje committed Jul 13, 2022
1 parent 9ac0583 commit ca4d63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/card-starcos.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ static int starcos_has_esign_app(sc_card_t * card) {
rv = sc_hex_to_bin(starcos_esign_aid, aid, &len);
LOG_TEST_RET(card->ctx, rv, "Failed to convert eSing AID");
rv = starcos_select_aid(card, aid, len, &file);
sc_file_free(file);
if ( rv == SC_SUCCESS ) {
sc_file_free(file);
starcos_select_mf(card);
}
}
Expand Down

0 comments on commit ca4d63e

Please sign in to comment.