From 2d8cd396ba55fad14d7e03ae904d9fe8fdf1b60d Mon Sep 17 00:00:00 2001 From: jacob Date: Wed, 10 Sep 2003 12:30:10 +0000 Subject: [PATCH] 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 --- sshpubk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; /* -- 2.11.0