Skip to content

Commit

Permalink
fixed error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Mar 11, 2024
1 parent b6f69fd commit d2cbd63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pkcs15init/pkcs15-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,8 @@ sc_pkcs15init_generate_key(struct sc_pkcs15_card *p15card, struct sc_profile *pr
r = profile->ops->emu_store_data(p15card, profile, object, NULL, NULL);
if (r == SC_ERROR_NOT_IMPLEMENTED)
r = SC_SUCCESS;
if (r < 0)
sc_pkcs15_remove_object(p15card, object);
LOG_TEST_GOTO_ERR(ctx, r, "Card specific 'store data' failed");
}

Expand Down

0 comments on commit d2cbd63

Please sign in to comment.