More W32 resolver workarounds
[oweals/gnunet.git] / src / dht / plugin_block_dht.c
index a21167fb03a9fe62b957e4d419b850a0fac20af6..d6798f18cfb936b3e5e64cda012f628aff707126 100644 (file)
@@ -172,7 +172,7 @@ libgnunet_plugin_block_dht_init (void *cls)
   };
   struct GNUNET_BLOCK_PluginFunctions *api;
 
-  api = GNUNET_malloc (sizeof (struct GNUNET_BLOCK_PluginFunctions));
+  api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions);
   api->evaluate = &block_plugin_dht_evaluate;
   api->get_key = &block_plugin_dht_get_key;
   api->types = types;