aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat_stun.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-06 19:09:30 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-06 19:09:30 +0000
commit88a70fd6af0e132f2a13bc682f4c10f3d4971198 (patch)
tree4cbc86459cfd3bafcc09c7b627028e9ba3218ff4 /src/nat/nat_stun.c
parent74735f9ef6d47283feb58d8b5ca7209875150063 (diff)
downloadgnunet-88a70fd6af0e132f2a13bc682f4c10f3d4971198.tar.gz
gnunet-88a70fd6af0e132f2a13bc682f4c10f3d4971198.zip
- fix multiple gnunet-nat crashes
Diffstat (limited to 'src/nat/nat_stun.c')
-rw-r--r--src/nat/nat_stun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nat/nat_stun.c b/src/nat/nat_stun.c
index 7b41b3387..5c819356c 100644
--- a/src/nat/nat_stun.c
+++ b/src/nat/nat_stun.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * 22 *
23 * This code provides some support for doing STUN transactions. 23 * This code provides some support for doing STUN transactions.
24 * We send simplest possible packet ia REQUEST with BIND to a STUN server. 24 * We send simplest possible packet ia REQUEST with BIND to a STUN server.
25 * 25 *
@@ -29,7 +29,7 @@
29 * structured as a type, length and a value (whose format depends 29 * structured as a type, length and a value (whose format depends
30 * on the type, but often contains addresses). 30 * on the type, but often contains addresses).
31 * Of course all fields are in network format. 31 * Of course all fields are in network format.
32 * 32 *
33 * This code was based on ministun.c. 33 * This code was based on ministun.c.
34 * 34 *
35 * 35 *
@@ -567,7 +567,7 @@ GNUNET_NAT_stun_make_request(char * server,
567 TIMEOUT, 567 TIMEOUT,
568 &stun_dns_callback, rh); 568 &stun_dns_callback, rh);
569 569
570 if(rh->dns_active == NULL) 570 if (rh->dns_active == NULL)
571 { 571 {
572 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "Failed DNS"); 572 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "Failed DNS");
573 GNUNET_free(rh); 573 GNUNET_free(rh);