From: jacob Date: Wed, 10 Sep 2003 12:30:10 +0000 (+0000) Subject: Oops. Fix a bug in my `keyfile-diagnostic' work which caused SSH-2 key loading X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/2d8cd396ba55fad14d7e03ae904d9fe8fdf1b60d?ds=sidebyside Oops. Fix a bug in my `keyfile-diagnostic' work which caused SSH-2 key loading in pageant (and presumably puttygen) to crash. git-svn-id: svn://svn.tartarus.org/sgt/putty@3450 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/sshpubk.c b/sshpubk.c index 78a35ee7..dd06ebd5 100644 --- 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; /*