diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-12-07 12:47:35 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-12-07 12:47:35 +0000 |
commit | 12b568945c95573ed0b0dbc63d0b81a5fa49248b (patch) | |
tree | 19aedc687f22c2de1da36f258282c363a3c53c07 /src/transport/plugin_transport_tcp.c | |
parent | 00df06aed303ed37c5317753dcb2fb8d71780029 (diff) | |
download | gnunet-12b568945c95573ed0b0dbc63d0b81a5fa49248b.tar.gz gnunet-12b568945c95573ed0b0dbc63d0b81a5fa49248b.zip |
missing nat server check before trying to kill process
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
3018 | GNUNET_free (tcp_probe); | 3018 | GNUNET_free (tcp_probe); |
3019 | } | 3019 | } |
3020 | 3020 | ||
3021 | if (plugin->behind_nat == GNUNET_YES) | 3021 | if ((plugin->behind_nat == GNUNET_YES) && |
3022 | (plugin->enable_nat_server == GNUNET_YES)) | ||
3022 | { | 3023 | { |
3023 | if (0 != GNUNET_OS_process_kill (plugin->server_proc, SIGTERM)) | 3024 | if (0 != GNUNET_OS_process_kill (plugin->server_proc, SIGTERM)) |
3024 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | 3025 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); |