mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +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:
parent
562cdd4df1
commit
f7821f530f
@ -125,7 +125,7 @@ void pq_base_concatenate(PacketQueueBase *qdest,
|
|||||||
if (head2)
|
if (head2)
|
||||||
head2->prev = tail1;
|
head2->prev = tail1;
|
||||||
else
|
else
|
||||||
tail2 = head1;
|
tail2 = tail1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check the destination queue is currently empty. (If it was one
|
* Check the destination queue is currently empty. (If it was one
|
||||||
|
Loading…
Reference in New Issue
Block a user