Skip to content

Commit

Permalink
sc-hsm: fixed parsing EF.TokenInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Sep 1, 2016
1 parent cda3a2b commit 7f73c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/pkcs15-sc-hsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ static int sc_pkcs15emu_sc_hsm_read_tokeninfo (sc_pkcs15_card_t * p15card)
r = read_file(p15card, (u8 *) "\x2F\x03", efbin, &len);
LOG_TEST_RET(card->ctx, r, "Could not read EF.TokenInfo");

r = sc_pkcs15_parse_tokeninfo(card->ctx, p15card->tokeninfo, efbin, r);
r = sc_pkcs15_parse_tokeninfo(card->ctx, p15card->tokeninfo, efbin, len);
LOG_TEST_RET(card->ctx, r, "Could not decode EF.TokenInfo");

LOG_FUNC_RETURN(card->ctx, SC_SUCCESS);
Expand Down

0 comments on commit 7f73c59

Please sign in to comment.