]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Failure to initialise a local variable was leading to free(garbage)
authorSimon Tatham <anakin@pobox.com>
Mon, 17 Jun 2002 16:45:41 +0000 (16:45 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 17 Jun 2002 16:45:41 +0000 (16:45 +0000)
on loading an OpenSSH key and getting the wrong passphrase.

[originally from svn r1737]

import.c

index e79265116ff15c1de22857503f686da26f2276f5..30662983e5aea3767ac4d9cba8f919515ca6bf7d 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;