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

Add missing pq_pop when handling SSH_MSG_DISCONNECT.

Somehow I managed to leave that line out in both SSH-1 and SSH-2's
functions for handling DISCONNECT, IGNORE and DEBUG, and in both
cases, only for DISCONNECT. Oops.
This commit is contained in:
Simon Tatham 2018-10-13 17:16:07 +01:00
parent 554e8f3991
commit 1986ee2d9c
2 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ int ssh1_common_filter_queue(PacketProtocolLayer *ppl)
ssh_remote_error(ppl->ssh,
"Server sent disconnect message:\n\"%.*s\"",
PTRLEN_PRINTF(msg));
pq_pop(ppl->in_pq);
return TRUE; /* indicate that we've been freed */
case SSH1_MSG_DEBUG:

View File

@ -530,6 +530,7 @@ int ssh2_common_filter_queue(PacketProtocolLayer *ppl)
((reason > 0 && reason < lenof(ssh2_disconnect_reasons)) ?
ssh2_disconnect_reasons[reason] : "unknown"),
PTRLEN_PRINTF(msg));
pq_pop(ppl->in_pq);
return TRUE; /* indicate that we've been freed */
case SSH2_MSG_DEBUG: