if (use_udp)
proto = IPPROTO_UDP;
+ GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
+ NULL);
+
if (do_auto)
{
ah = GNUNET_NAT_autoconfig_start (c,
NULL);
}
- GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
- NULL);
-
if (NULL != remote_addr)
{
int ret;
const struct GNUNET_NAT_AutoconfigRequestMessage *message)
{
struct ClientHandle *ch = cls;
- size_t left = ntohs (message->header.size);
+ size_t left = ntohs (message->header.size) - sizeof (*message);
struct GNUNET_CONFIGURATION_Handle *c;
c = GNUNET_CONFIGURATION_create ();