log exit of sc_single_transmit in case of SM

This commit is contained in:
Frank Morgner 2016-06-16 11:29:44 +02:00
parent 0a254dc2bb
commit 752e5afd49
1 changed files with 3 additions and 2 deletions

View File

@ -377,8 +377,9 @@ sc_single_transmit(struct sc_card *card, struct sc_apdu *apdu)
apdu->cla, apdu->ins, apdu->p1, apdu->p2, apdu->datalen,
apdu->data);
#ifdef ENABLE_SM
if (card->sm_ctx.sm_mode == SM_MODE_TRANSMIT)
return sc_sm_single_transmit(card, apdu);
if (card->sm_ctx.sm_mode == SM_MODE_TRANSMIT) {
LOG_FUNC_RETURN(ctx, sc_sm_single_transmit(card, apdu));
}
#endif
/* send APDU to the reader driver */