aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-10 12:37:44 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-10 12:37:44 +0000
commitf2d0582c044e1c7ea338db930fe002d2f41841b0 (patch)
tree24ee089657227faf2195e8564105c5ade498bcc9 /src/transport/plugin_transport_udp.c
parenta3a1fccc6e16f6dfdda03445f7b72b835fbc23b6 (diff)
downloadgnunet-f2d0582c044e1c7ea338db930fe002d2f41841b0.tar.gz
gnunet-f2d0582c044e1c7ea338db930fe002d2f41841b0.zip
codesonar fix
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 3b669d80c..d95147a1a 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -723,12 +723,15 @@ run_gnunet_nat_client (struct Plugin *plugin, const char *addr, size_t addrlen)
723#endif 723#endif
724 724
725 /* Start the server process */ 725 /* Start the server process */
726 proc = GNUNET_OS_start_process(NULL, NULL, "gnunet-nat-client", "gnunet-nat-client", plugin->external_address, address_as_string, port_as_string, NULL); 726 proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-nat-client", "gnunet-nat-client", plugin->external_address, address_as_string, port_as_string, NULL);
727 GNUNET_free(address_as_string); 727 GNUNET_free(address_as_string);
728 GNUNET_free(port_as_string); 728 GNUNET_free(port_as_string);
729 GNUNET_OS_process_wait (proc); 729 if (proc != NULL)
730 GNUNET_OS_process_close (proc); 730 {
731 proc = NULL; 731 GNUNET_OS_process_wait (proc);
732 GNUNET_OS_process_close (proc);
733 proc = NULL;
734 }
732} 735}
733 736
734/** 737/**