- fix scan defects
authorBart Polot <bart@net.in.tum.de>
Wed, 14 Aug 2013 13:30:42 +0000 (13:30 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 14 Aug 2013 13:30:42 +0000 (13:30 +0000)
src/mesh/gnunet-service-mesh-enc.c
src/mesh/gnunet-service-mesh.c

index c19199132244a0629162e892ac8a3ca9c61cc33c..f42d31f1d1d78839e6e79809778480281a0bcafa 100644 (file)
@@ -4249,7 +4249,7 @@ queue_destroy (struct MeshPeerQueue *queue, int clear_cls)
 
   if (GNUNET_YES == clear_cls)
   {
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "   type %s\n",
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "   queue destroy type %s\n",
                 GNUNET_MESH_DEBUG_M2S (queue->type));
     switch (queue->type)
     {
@@ -5655,7 +5655,6 @@ static void
 handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
 {
   struct MeshClient *c;
-  struct MeshClient *next;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected: %p\n", client);
   if (client == NULL)
@@ -5691,12 +5690,10 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
                                                &client_release_ports, c);
       GNUNET_CONTAINER_multihashmap32_destroy (c->ports);
     }
-    next = c->next;
     GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c);
     GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "  client free (%p)\n", c);
     GNUNET_free (c);
-    c = next;
   }
   else
   {
index 9b4e4ad726a68d3fcb99060ada184dcd240ef135..1893c230461610975cc9427273c058b2fd364545 100644 (file)
@@ -4896,7 +4896,6 @@ static void
 handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
 {
   struct MeshClient *c;
-  struct MeshClient *next;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "client disconnected: %p\n", client);
   if (client == NULL)
@@ -4932,12 +4931,10 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
                                                &client_release_ports, c);
       GNUNET_CONTAINER_multihashmap32_destroy (c->ports);
     }
-    next = c->next;
     GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "  client free (%p)\n", c);
     GNUNET_free (c);
     GNUNET_STATISTICS_update (stats, "# clients", -1, GNUNET_NO);
-    c = next;
   }
   else
   {