[pkg-opensc-commit] [opensc] 218/295: log exit of sc_single_transmit in case of SM

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit 752e5afd49670caa13c5e710f7327e6731e6bb11
Author: Frank Morgner <frankmorgner at gmail.com>
Date:   Thu Jun 16 11:29:44 2016 +0200

    log exit of sc_single_transmit in case of SM
---
 src/libopensc/apdu.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libopensc/apdu.c b/src/libopensc/apdu.c
index 50469c0..777b951 100644
--- a/src/libopensc/apdu.c
+++ b/src/libopensc/apdu.c
@@ -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 */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list