Added missing return in iterator_t.insert_before of linked_list_t.
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 10:30:23 +0000 (12:30 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:48:50 +0000 (13:48 +0200)
src/libstrongswan/utils/linked_list.c

index 4aa8ea6..9b37359 100644 (file)
@@ -289,6 +289,7 @@ static void insert_before(private_iterator_t * iterator, void *item)
        if (iterator->current == NULL)
        {
                iterator->list->public.insert_first(&(iterator->list->public), item);
+               return;
        }
 
        element_t *element = element_create(item);