mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Fix potential null-pointer dereference in ssh_reconfig.
ssh->base_layer is NULL when the connection is still in its early stages, before greetings are exchanged. If the user invokes the Change Settings dialog in this situation, ssh_reconfig would call ssh_ppl_reconfigure() on ssh->base_layer without checking if it was NULL first. (cherry picked from commit d67c13eeb8bf64516aac6c2752eb835e9bc7105a)
This commit is contained in:
parent
f17daf6cc7
commit
c545c04102
@ -1038,6 +1038,7 @@ static void ssh_reconfig(Backend *be, Conf *conf)
|
|||||||
if (ssh->pinger)
|
if (ssh->pinger)
|
||||||
pinger_reconfig(ssh->pinger, ssh->conf, conf);
|
pinger_reconfig(ssh->pinger, ssh->conf, conf);
|
||||||
|
|
||||||
|
if (ssh->base_layer)
|
||||||
ssh_ppl_reconfigure(ssh->base_layer, conf);
|
ssh_ppl_reconfigure(ssh->base_layer, conf);
|
||||||
|
|
||||||
conf_free(ssh->conf);
|
conf_free(ssh->conf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user