- use proper signedness
[oweals/gnunet.git] / src / transport / transport_api_blacklist.c
index dcd1ae78180683ccca1e4d46e95bc41a552c9828..1c17bd49856cea3c0e4925143cb52b163f796fc4 100644 (file)
@@ -256,7 +256,7 @@ GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg,
   client = GNUNET_CLIENT_connect ("transport", cfg);
   if (NULL == client)
     return NULL;
-  ret = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_Blacklist));
+  ret = GNUNET_new (struct GNUNET_TRANSPORT_Blacklist);
   ret->client = client;
   ret->cfg = cfg;
   ret->cb = cb;