summaryrefslogtreecommitdiff
path: root/scard.c
diff options
context:
space:
mode:
Diffstat (limited to 'scard.c')
-rw-r--r--scard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scard.c b/scard.c
index 9f22fdf39..8c53c66df 100644
--- a/scard.c
+++ b/scard.c
@@ -24,7 +24,7 @@
24 24
25#ifdef SMARTCARD 25#ifdef SMARTCARD
26#include "includes.h" 26#include "includes.h"
27RCSID("$OpenBSD: scard.c,v 1.9 2001/07/31 08:41:10 jakob Exp $"); 27RCSID("$OpenBSD: scard.c,v 1.10 2001/07/31 12:53:34 jakob Exp $");
28 28
29#include <openssl/engine.h> 29#include <openssl/engine.h>
30#include <sectok.h> 30#include <sectok.h>
@@ -64,6 +64,7 @@ sc_open(void)
64 if (! sectok_cardpresent(sc_fd)) { 64 if (! sectok_cardpresent(sc_fd)) {
65 debug("smartcard in reader %d not present, skipping", 65 debug("smartcard in reader %d not present, skipping",
66 sc_reader_num); 66 sc_reader_num);
67 sc_close();
67 return SCARD_ERROR_NOCARD; 68 return SCARD_ERROR_NOCARD;
68 } 69 }
69 if (sectok_reset(sc_fd, 0, NULL, &sw) <= 0) { 70 if (sectok_reset(sc_fd, 0, NULL, &sw) <= 0) {