From ab13c8ffb737fafb938c4614a6eaa19c387774a5 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Sun, 11 Apr 2010 21:06:28 +0000 Subject: [PATCH] bugfix: fetching unhandled error in update_iv git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@62 96b47cad-a561-4643-ad3b-153ac7d7599c --- ccid/pace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ccid/pace.c b/ccid/pace.c index 6a60643..76adadb 100644 --- a/ccid/pace.c +++ b/ccid/pace.c @@ -840,6 +840,7 @@ int pace_test(sc_card_t *card) apdu.le = 0x00; apdu.cse = SC_APDU_CASE_4_SHORT; + /*increment_ssc(&sctx);*/ sm_transmit_apdu(&sctx, card, &apdu); return SC_SUCCESS; @@ -934,7 +935,8 @@ update_iv(struct sm_ctx *ctx) psmctx->ctx->iv = NULL; break; default: - break; + r = SC_ERROR_INVALID_ARGUMENTS; + goto err; } r = SC_SUCCESS;