if (mlen > size)
{
mesh_th = GNUNET_MESH_notify_transmit_ready (mesh_tunnel,
- GNUNET_NO, 0,
+ GNUNET_NO,
TIMEOUT,
NULL, mlen,
&transmit_dns_request_to_mesh,
rc = transmit_queue_head;
if (NULL != rc)
mesh_th = GNUNET_MESH_notify_transmit_ready (mesh_tunnel,
- GNUNET_NO, 0,
+ GNUNET_NO,
TIMEOUT,
NULL, ntohs (rc->mesh_message->size),
&transmit_dns_request_to_mesh,
rc);
if (NULL == mesh_th)
mesh_th = GNUNET_MESH_notify_transmit_ready (mesh_tunnel,
- GNUNET_NO, 0,
+ GNUNET_NO,
TIMEOUT,
NULL, mlen,
&transmit_dns_request_to_mesh,
static const struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_END
};
+ int ret;
if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
return 2;
-
- return (GNUNET_OK ==
- GNUNET_PROGRAM_run (argc, argv, "gnunet-daemon-pt",
- gettext_noop
- ("Daemon to run to perform IP protocol translation to GNUnet"),
- options, &run, NULL)) ? 0 : 1;
+ ret = (GNUNET_OK ==
+ GNUNET_PROGRAM_run (argc, argv, "gnunet-daemon-pt",
+ gettext_noop
+ ("Daemon to run to perform IP protocol translation to GNUnet"),
+ options, &run, NULL)) ? 0 : 1;
+ GNUNET_free ((void*) argv);
+ return ret;
}