mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +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);
|
s->fingerprint = ssh2_fingerprint(ssh->hostkey, s->hkey);
|
||||||
logevent("Storing additional host key for this host:");
|
logevent("Storing additional host key for this host:");
|
||||||
logevent(s->fingerprint);
|
logevent(s->fingerprint);
|
||||||
|
sfree(s->fingerprint);
|
||||||
store_host_key(ssh->savedhost, ssh->savedport,
|
store_host_key(ssh->savedhost, ssh->savedport,
|
||||||
ssh->hostkey->keytype, s->keystr);
|
ssh->hostkey->keytype, s->keystr);
|
||||||
ssh->cross_certifying = FALSE;
|
ssh->cross_certifying = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user