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:
parent
e2452f3bd0
commit
225186cad2
1
ssh.c
1
ssh.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user