diff options
author | 2001-09-28 09:49:31 +0000 | |
---|---|---|
committer | 2001-09-28 09:49:31 +0000 | |
commit | 9d3ce97eda16465dcab3606032dd72d13382783e (patch) | |
tree | 7ed413e46e2da72e2f4527a21ae64eaebf2132a8 | |
parent | Redundant prototypes. (diff) | |
download | wireguard-openbsd-9d3ce97eda16465dcab3606032dd72d13382783e.tar.xz wireguard-openbsd-9d3ce97eda16465dcab3606032dd72d13382783e.zip |
Fix segv when smartcard communication error occurs during key load. ok markus@
-rw-r--r-- | usr.bin/ssh/scard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/scard.c b/usr.bin/ssh/scard.c index 8a8ffb3e80e..d7fd2c2ad85 100644 --- a/usr.bin/ssh/scard.c +++ b/usr.bin/ssh/scard.c @@ -24,7 +24,7 @@ #ifdef SMARTCARD #include "includes.h" -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(); |