Fix missing notify_cancel in dht service, dhtlog_dummy bad init return
authorNathan S. Evans <evans@in.tum.de>
Fri, 19 Nov 2010 12:20:02 +0000 (12:20 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 19 Nov 2010 12:20:02 +0000 (12:20 +0000)
src/dht/dhtlog.c
src/dht/gnunet-service-dht.c
src/dht/plugin_dhtlog_dummy.c

index 8feb3178d6f4b28c2615db4e6b8fb1ceaae53111..7d66fb87c3a8e8d2ae4dfc38bbbdba66cf389280 100644 (file)
@@ -70,7 +70,7 @@ GNUNET_DHTLOG_connect (const struct GNUNET_CONFIGURATION_Handle *c)
 
   api = plugin->dhtlog_api;
   GNUNET_free (plugin_name);
-  GNUNET_free(plugin);
+  GNUNET_free (plugin);
   return api;
 }
 
index 2e27ba55b4b56875d535bcf1f563b79b60a18009..692a8feb11d800c036bbd508ac10725538fc165c 100644 (file)
@@ -3799,6 +3799,9 @@ static void handle_client_disconnect (void *cls,
 
   if (found != NULL)
     {
+      if (found->transmit_handle != NULL)
+        GNUNET_CONNECTION_notify_transmit_ready_cancel(found->transmit_handle);
+
       while(NULL != (reply = found->pending_head))
         {
           GNUNET_CONTAINER_DLL_remove(found->pending_head, found->pending_tail, reply);
index 3f3cd8de1fcd42def6246b3d96ed5c077cfdfc68..96a29af896e4b156187b661737963e70895067bb 100644 (file)
@@ -304,7 +304,7 @@ libgnunet_plugin_dhtlog_dummy_init (void * cls)
   plugin->dhtlog_api->insert_topology = &add_topology;
   plugin->dhtlog_api->update_topology = &update_topology;
   plugin->dhtlog_api->insert_extended_topology = &add_extended_topology;
-  return NULL;
+  return plugin;
 }
 
 /**