From 12b568945c95573ed0b0dbc63d0b81a5fa49248b Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 7 Dec 2010 12:47:35 +0000 Subject: [PATCH] missing nat server check before trying to kill process --- src/transport/plugin_transport_tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index df442c71f..6e2d236ab 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -3018,7 +3018,8 @@ libgnunet_plugin_transport_tcp_done (void *cls) GNUNET_free (tcp_probe); } - if (plugin->behind_nat == GNUNET_YES) + if ((plugin->behind_nat == GNUNET_YES) && + (plugin->enable_nat_server == GNUNET_YES)) { if (0 != GNUNET_OS_process_kill (plugin->server_proc, SIGTERM)) GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); -- 2.25.1