fixed bug when inserting with iterator
authorJan Hutter <jhutter@hsr.ch>
Tue, 29 Nov 2005 08:14:19 +0000 (08:14 -0000)
committerJan Hutter <jhutter@hsr.ch>
Tue, 29 Nov 2005 08:14:19 +0000 (08:14 -0000)
Source/charon/utils/linked_list.c

index 27d9db6..ca5dc60 100644 (file)
@@ -300,6 +300,7 @@ static void insert_after(private_iterator_t * iterator, void *item)
        if (iterator->current == NULL)
        {
                iterator->list->public.insert_first(&(iterator->list->public),item);
+               return;
        }
 
        linked_list_element_t *element =(linked_list_element_t *) linked_list_element_create(item);