1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

Fix memory leak: Free hostkey fingerprint when cross-certifying.

This commit is contained in:
Tim Kosse 2017-01-06 11:44:47 +01:00 committed by Simon Tatham
parent e2452f3bd0
commit 225186cad2

1
ssh.c
View File

@ -7323,6 +7323,7 @@ static void do_ssh2_transport(Ssh ssh, const void *vin, int inlen,
s->fingerprint = ssh2_fingerprint(ssh->hostkey, s->hkey);
logevent("Storing additional host key for this host:");
logevent(s->fingerprint);
sfree(s->fingerprint);
store_host_key(ssh->savedhost, ssh->savedport,
ssh->hostkey->keytype, s->keystr);
ssh->cross_certifying = FALSE;