diff options
author | mouring <mouring> | 2001-08-06 21:33:44 +0000 |
---|---|---|
committer | mouring <mouring> | 2001-08-06 21:33:44 +0000 |
commit | c84b6610b27a0d2f2fc0bb330890f7182526bb69 (patch) | |
tree | ac78b3b14878304677de3cb62addf75574ee5992 /scard.c | |
parent | 510842e5ec8e70c724ccf60310af5110a4126f1f (diff) | |
download | openssh-c84b6610b27a0d2f2fc0bb330890f7182526bb69.tar.gz |
- jakob@cvs.openbsd.org 2001/07/31 12:53:34
[scard.c]
close smartcard connection if card is missing
Diffstat (limited to 'scard.c')
-rw-r--r-- | scard.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,7 @@ #ifdef SMARTCARD #include "includes.h" -RCSID("$OpenBSD: scard.c,v 1.9 2001/07/31 08:41:10 jakob Exp $"); +RCSID("$OpenBSD: scard.c,v 1.10 2001/07/31 12:53:34 jakob Exp $"); #include <openssl/engine.h> #include <sectok.h> @@ -64,6 +64,7 @@ sc_open(void) if (! sectok_cardpresent(sc_fd)) { debug("smartcard in reader %d not present, skipping", sc_reader_num); + sc_close(); return SCARD_ERROR_NOCARD; } if (sectok_reset(sc_fd, 0, NULL, &sw) <= 0) { |