*/
struct TCPProbeContext *probe_tail;
- /**
- * Handle for (DYN)DNS lookup of our external IP.
- */
- struct GNUNET_RESOLVER_RequestHandle *ext_dns;
-
/**
* Function to call about session status changes.
*/
sbs,
! numeric,
timeout,
- &append_port, ppc);
+ &append_port,
+ ppc);
if (NULL == ppc->resolver_handle)
{
GNUNET_break (0);
GNUNET_YES,
aport,
(unsigned int) ret_s,
- (const struct sockaddr **) addrs, addrlens,
+ (const struct sockaddr **) addrs,
+ addrlens,
&tcp_nat_port_map_callback,
&try_connection_reversal,
- plugin, NULL);
+ plugin,
+ NULL);
for (ret = ret_s -1; ret >= 0; ret--)
GNUNET_free (addrs[ret]);
GNUNET_free_non_null (addrs);
GNUNET_YES);
}
plugin->handlers = GNUNET_malloc (sizeof (my_handlers));
- GNUNET_memcpy (plugin->handlers, my_handlers, sizeof(my_handlers));
+ GNUNET_memcpy (plugin->handlers,
+ my_handlers,
+ sizeof(my_handlers));
for (i = 0;i < sizeof(my_handlers) / sizeof(struct GNUNET_SERVER_MessageHandler);i++)
plugin->handlers[i].callback_cls = plugin;
GNUNET_CONTAINER_multipeermap_destroy (p->sessions);
GNUNET_CONTAINER_heap_destroy (p->defrag_ctxs);
GNUNET_SERVER_mst_destroy (p->mst);
+ if (NULL != p->nat)
+ GNUNET_NAT_unregister (p->nat);
GNUNET_free (p);
return NULL;
}