- htons => htonl
[oweals/gnunet.git] / src / vpn / gnunet-service-vpn.c
index 16e84e71558691ef7c7dddf4a144bac415e2c205..2c14635193290fddc5dc78fc885cd2cfb9709921 100644 (file)
@@ -2448,14 +2448,14 @@ free_destination_entry (struct DestinationEntry *de)
                            -1, GNUNET_NO);
   while (NULL != (dt = de->dt_head))
   {
+    GNUNET_CONTAINER_DLL_remove (de->dt_head,
+                                de->dt_tail,
+                                dt);
     if (NULL != dt->ts)
     {
       free_channel_state (dt->ts);
       GNUNET_assert (NULL == dt->ts);
     }
-    GNUNET_CONTAINER_DLL_remove (de->dt_head,
-                                de->dt_tail,
-                                dt);
     GNUNET_free (dt);
   }
   if (NULL != de->heap_node)