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

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!
This commit is contained in:
Simon Tatham 2018-09-22 09:32:08 +01:00
parent 562cdd4df1
commit f7821f530f

View File

@ -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