summaryrefslogtreecommitdiff
path: root/scard.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-09-28 19:51:54 +1000
committerDamien Miller <djm@mindrot.org>2001-09-28 19:51:54 +1000
commit3ff36d6ce250f74e7bf73b3fb6ef65fdb6f65b86 (patch)
treec4a2efacfe9faa0242b0888b3e736aa382ab8152 /scard.c
parenta0957d6898b962677cba968eee972ad987aff3a3 (diff)
- (djm) OpenBSD CVS sync:
- djm@cvs.openbsd.org 2001/09/28 09:49:31 [scard.c] Fix segv when smartcard communication error occurs during key load. ok markus@
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 f67f7e7e..251e5d30 100644
--- a/scard.c
+++ b/scard.c
@@ -24,7 +24,7 @@
#include "includes.h"
#ifdef SMARTCARD
-RCSID("$OpenBSD: scard.c,v 1.14 2001/09/17 20:22:14 markus Exp $");
+RCSID("$OpenBSD: scard.c,v 1.15 2001/09/28 09:49:31 djm Exp $");
#include <openssl/engine.h>
#include <sectok.h>
@@ -123,6 +123,7 @@ sc_read_pubkey(Key * k)
int len, sw, status = -1;
len = sw = 0;
+ n = NULL;
if (sc_fd < 0) {
status = sc_init();