From: simon Date: Mon, 17 Jun 2002 16:45:41 +0000 (+0000) Subject: Failure to initialise a local variable was leading to free(garbage) X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/e3498db5eebc7b17bafb8872e202fd27c28bde51 Failure to initialise a local variable was leading to free(garbage) on loading an OpenSSH key and getting the wrong passphrase. git-svn-id: svn://svn.tartarus.org/sgt/putty@1737 cda61777-01e9-0310-a592-d414129be87e --- 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;