mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05: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:
parent
562cdd4df1
commit
f7821f530f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user