mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
winpr-utils: fix problem in LinkedList enumerator
A segfault can happen if LinkedList_Enumerator_MoveNext is invoked before LinkedList_Enumerator_Reset was called.
This commit is contained in:
@@ -306,7 +306,7 @@ BOOL LinkedList_Enumerator_MoveNext(wLinkedList* list)
|
||||
{
|
||||
if (list->initial)
|
||||
list->initial = 0;
|
||||
else
|
||||
else if (list->current)
|
||||
list->current = list->current->next;
|
||||
|
||||
if (!list->current)
|
||||
|
||||
Reference in New Issue
Block a user