1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Uppity: fix a really obvious use-after-free.

Oops! Fortunately, it's _only_ in Uppity. Must have written that code
in a hell of a hurry to make that goof.
This commit is contained in:
Simon Tatham 2019-03-31 10:19:04 +01:00
parent b9db527102
commit dd3f04ec40

View File

@ -323,9 +323,10 @@ static void ssh_server_free_callback(void *vsrv)
sfree(srv->gss_state.libs); /* FIXME: replace with sensible */
#endif
LogPolicy *lp = srv->logpolicy;
sfree(srv);
server_instance_terminated(srv->logpolicy);
server_instance_terminated(lp);
}
static void server_connect_bpp(server *srv)