diff --git a/ssh2transport.c b/ssh2transport.c index 204c2440..bcb1fee6 100644 --- a/ssh2transport.c +++ b/ssh2transport.c @@ -347,7 +347,7 @@ bool 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); + /* don't try to pop the queue, because we've been freed! */ return true; /* indicate that we've been freed */ case SSH2_MSG_DEBUG: