- use proper signedness
[oweals/gnunet.git] / src / transport / transport_api_address_to_string.c
index 94c9ac45aa5c455bad57d6507c86502d8aef918b..0fb0623dc8d271f0cc7cc19befe205e269b1046e 100644 (file)
@@ -152,7 +152,7 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle
   memcpy (addrbuf, address->address, alen);
   memcpy (&addrbuf[alen], address->transport_name, slen);
 
-  alc = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_AddressToStringContext));
+  alc = GNUNET_new (struct GNUNET_TRANSPORT_AddressToStringContext);
   alc->cb = aluc;
   alc->cb_cls = aluc_cls;
   alc->timeout = GNUNET_TIME_relative_to_absolute (timeout);