From f7821f530f738ab68a5545dbd175b18310317fdf Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Sep 2018 09:32:08 +0100 Subject: [PATCH] Fix paste error in the new pq_concatenate. Commit 6a5d4d083 introduced a foolish list-handling bug: concatenating a non-empty queue to an empty queue would set the tail of the output list to the _head_ of the non-empty one, instead of to its tail. Of course, you don't notice this until you have more than one packet in the queue in question! --- sshcommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshcommon.c b/sshcommon.c index b98c9a62..757580ff 100644 --- a/sshcommon.c +++ b/sshcommon.c @@ -125,7 +125,7 @@ void pq_base_concatenate(PacketQueueBase *qdest, if (head2) head2->prev = tail1; else - tail2 = head1; + tail2 = tail1; /* * Check the destination queue is currently empty. (If it was one