1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

Fix a valgrind error.

rsa_ssh1_fingerprint will look at the input key's comment field, which
I forgot to initialise to anything, even the NULL it should be.
This commit is contained in:
Simon Tatham 2018-06-06 20:05:13 +01:00
parent eb5bc31911
commit 0df6303bb5

2
ssh.c
View File

@ -4141,6 +4141,8 @@ static void do_ssh1_login(void *vctx)
get_rsa_ssh1_pub(pktin, &s->servkey, RSA_SSH1_EXPONENT_FIRST);
get_rsa_ssh1_pub(pktin, &s->hostkey, RSA_SSH1_EXPONENT_FIRST);
s->hostkey.comment = NULL; /* avoid confusing rsa_ssh1_fingerprint */
/*
* Log the host key fingerprint.
*/