coverity 10270
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 29 Aug 2012 07:16:59 +0000 (07:16 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 29 Aug 2012 07:16:59 +0000 (07:16 +0000)
src/transport/test_plugin_transport.c

index db988fbe9dac31f3473d1e5466a04e95328aa5a2..500bcaf39142792d0979d84a8d7ffda65659dd98 100644 (file)
@@ -180,9 +180,9 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     libname = NULL;
   }
 
-  w = head;
   while (NULL != head)
   {
+      w = head;
       GNUNET_CONTAINER_DLL_remove (head, tail, w);
       c ++;
       GNUNET_free (w->addr);