Oops. Fix a bug in my `keyfile-diagnostic' work which caused SSH-2 key loading
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 10 Sep 2003 12:30:10 +0000 (12:30 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 10 Sep 2003 12:30:10 +0000 (12:30 +0000)
in pageant (and presumably puttygen) to crash.

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

sshpubk.c

index 78a35ee..dd06ebd 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;
 
     /*