diff options
Diffstat (limited to 'src/transport/transport_api_address_lookup.c')
-rw-r--r-- | src/transport/transport_api_address_lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/transport_api_address_lookup.c b/src/transport/transport_api_address_lookup.c index 515be9bf8..d547b8ed8 100644 --- a/src/transport/transport_api_address_lookup.c +++ b/src/transport/transport_api_address_lookup.c | |||
@@ -322,7 +322,7 @@ GNUNET_TRANSPORT_peer_get_active_addresses (const struct | |||
322 | return NULL; | 322 | return NULL; |
323 | if (GNUNET_YES != one_shot) | 323 | if (GNUNET_YES != one_shot) |
324 | timeout = GNUNET_TIME_UNIT_FOREVER_REL; | 324 | timeout = GNUNET_TIME_UNIT_FOREVER_REL; |
325 | pal_ctx = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_PeerIterateContext)); | 325 | pal_ctx = GNUNET_new (struct GNUNET_TRANSPORT_PeerIterateContext); |
326 | pal_ctx->cb = peer_address_callback; | 326 | pal_ctx->cb = peer_address_callback; |
327 | pal_ctx->cb_cls = peer_address_callback_cls; | 327 | pal_ctx->cb_cls = peer_address_callback_cls; |
328 | pal_ctx->cfg = cfg; | 328 | pal_ctx->cfg = cfg; |