]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commitdiff
Oops. Fix a bug in my `keyfile-diagnostic' work which caused SSH-2 key loading
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 10 Sep 2003 12:30:10 +0000 (12:30 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 10 Sep 2003 12:30:10 +0000 (12:30 +0000)
in pageant (and presumably puttygen) to crash.

git-svn-id: http://svn.tartarus.org/sgt/putty@3450 cda61777-01e9-0310-a592-d414129be87e

sshpubk.c

index 78a35ee7a0ab20de09fb41382e69c0ea7b020cd1..dd06ebd519d5106db2cac60509b15d8266d73a67 100644 (file)
--- a/sshpubk.c
+++ b/sshpubk.c
@@ -835,7 +835,8 @@ struct ssh2_userkey *ssh2_load_userkey(const Filename *filename,
     sfree(public_blob);
     sfree(private_blob);
     sfree(encryption);
-    *errorstr = NULL;
+    if (errorstr)
+       *errorstr = NULL;
     return ret;
 
     /*