зеркало из https://github.com/github/putty.git
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:
Родитель
b9db527102
Коммит
dd3f04ec40
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче