mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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:
parent
554e8f3991
commit
1986ee2d9c
@ -132,6 +132,7 @@ int ssh1_common_filter_queue(PacketProtocolLayer *ppl)
|
|||||||
ssh_remote_error(ppl->ssh,
|
ssh_remote_error(ppl->ssh,
|
||||||
"Server sent disconnect message:\n\"%.*s\"",
|
"Server sent disconnect message:\n\"%.*s\"",
|
||||||
PTRLEN_PRINTF(msg));
|
PTRLEN_PRINTF(msg));
|
||||||
|
pq_pop(ppl->in_pq);
|
||||||
return TRUE; /* indicate that we've been freed */
|
return TRUE; /* indicate that we've been freed */
|
||||||
|
|
||||||
case SSH1_MSG_DEBUG:
|
case SSH1_MSG_DEBUG:
|
||||||
|
@ -530,6 +530,7 @@ int 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);
|
||||||
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…
Reference in New Issue
Block a user