From f8f77ac80956c131876d1b0e24ed9c6eda53fc81 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 15 Sep 2011 12:54:56 +0000 Subject: [PATCH] check for external-ip before forking --- src/nat/nat_mini.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index ccdc83265..8014a451d 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c @@ -163,6 +163,9 @@ GNUNET_NAT_mini_get_external_ipv4 (struct GNUNET_TIME_Relative timeout, { struct GNUNET_NAT_ExternalHandle *eh; + if (GNUNET_SYSERR == + GNUNET_OS_check_helper_binary ("external-ip")) + return NULL; eh = GNUNET_malloc (sizeof (struct GNUNET_NAT_ExternalHandle)); eh->cb = cb; eh->cb_cls = cb_cls; -- 2.25.1