Failure to initialise a local variable was leading to free(garbage)
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 17 Jun 2002 16:45:41 +0000 (16:45 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 17 Jun 2002 16:45:41 +0000 (16:45 +0000)
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

import.c

index e792651..3066298 100644 (file)
--- 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;