- fix
authorBart Polot <bart@net.in.tum.de>
Tue, 5 Jun 2012 18:37:04 +0000 (18:37 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 5 Jun 2012 18:37:04 +0000 (18:37 +0000)
src/mesh/gnunet-service-mesh_new.c

index 7ff9f5e99752fefe701f801c87f586b5356238a6..0d783977663609a97caaa86f17bbef2edfd59b68 100644 (file)
@@ -4666,7 +4666,7 @@ core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
       if (q->peer == pi)
       {
         /* try to reroute this traffic instead */
-        queue_destroy(queue_head, GNUNET_YES);
+        queue_destroy(q, GNUNET_YES);
       }
       q = n;
   }
@@ -4723,7 +4723,7 @@ shutdown_peer (void *cls, const GNUNET_HashCode * key, void *value)
       n = q->next;
       if (q->peer == p)
       {
-        queue_destroy(queue_head, GNUNET_YES);
+        queue_destroy(q, GNUNET_YES);
       }
       q = n;
   }
@@ -4827,12 +4827,12 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
                       &my_full_id.hashPubKey);
   myid = GNUNET_PEER_intern (&my_full_id);
 
-// //   transport_handle = GNUNET_TRANSPORT_connect(c,
-// //                                               &my_full_id,
-// //                                               NULL,
-// //                                               NULL,
-// //                                               NULL,
-// //                                               NULL);
+//   transport_handle = GNUNET_TRANSPORT_connect(c,
+//                                               &my_full_id,
+//                                               NULL,
+//                                               NULL,
+//                                               NULL,
+//                                               NULL);
 
   dht_handle = GNUNET_DHT_connect (c, 64);
   if (dht_handle == NULL)