diff --git a/sshverstring.c b/sshverstring.c index 66db98b6..68cee61c 100644 --- a/sshverstring.c +++ b/sshverstring.c @@ -409,8 +409,10 @@ static PktOut *ssh_verstring_new_pktout(int type) static void ssh_verstring_handle_output(BinaryPacketProtocol *bpp) { - assert(0 && "Should never try to send packets during SSH version " - "string exchange"); + if (pq_peek(&bpp->out_pq)) { + assert(0 && "Should never try to send packets during SSH version " + "string exchange"); + } } /*