diff options
author | djm <djm> | 2001-09-28 09:51:54 +0000 |
---|---|---|
committer | djm <djm> | 2001-09-28 09:51:54 +0000 |
commit | 388a3f0cc11f5ea5103da1ff1fef36109055ed0b (patch) | |
tree | 0750c54c72e37783cfb6074fdca8f6f3bb6eb22c /scard.c | |
parent | c38e4a29d4cf7882d93f4cece2c65d70d1c099ca (diff) | |
download | openssh-388a3f0cc11f5ea5103da1ff1fef36109055ed0b.tar.gz |
- (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |