mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05:00
Fix crash if the SSH server disconnects.
When ssh_remote_error returns, the ssh2_transport_state has been freed, so we shouldn't try to reach into it to pop its in_pq.
This commit is contained in:
parent
a1ce240cfb
commit
58fd58d64c
@ -347,7 +347,7 @@ bool ssh2_common_filter_queue(PacketProtocolLayer *ppl)
|
|||||||
((reason > 0 && reason < lenof(ssh2_disconnect_reasons)) ?
|
((reason > 0 && reason < lenof(ssh2_disconnect_reasons)) ?
|
||||||
ssh2_disconnect_reasons[reason] : "unknown"),
|
ssh2_disconnect_reasons[reason] : "unknown"),
|
||||||
PTRLEN_PRINTF(msg));
|
PTRLEN_PRINTF(msg));
|
||||||
pq_pop(ppl->in_pq);
|
/* don't try to pop the queue, because we've been freed! */
|
||||||
return true; /* indicate that we've been freed */
|
return true; /* indicate that we've been freed */
|
||||||
|
|
||||||
case SSH2_MSG_DEBUG:
|
case SSH2_MSG_DEBUG:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user