From 802aeb2d5ee1f322dcfb007b38af6852b386804e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 17 Jun 2002 16:45:41 +0000 Subject: [PATCH] Failure to initialise a local variable was leading to free(garbage) on loading an OpenSSH key and getting the wrong passphrase. [originally from svn r1737] --- import.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/import.c b/import.c index e7926511..30662983 100644 --- a/import.c +++ b/import.c @@ -485,6 +485,8 @@ struct ssh2_userkey *openssh_read(char *filename, char *passphrase) char *modptr; int modlen; + blob = NULL; + if (!key) return NULL;