diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-11-30 12:17:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-11-30 12:17:19 +0100 |
commit | 8a5c5861114433d0d267885bb29f21a0c160d1f4 (patch) | |
tree | 6e166602f71e6d65a89a9d7591fdbce496c5f1e2 /src/nat/nat_api_stun.c | |
parent | dedcc8ae3d460670dd990f7e79d41ed6c8af87d4 (diff) | |
download | gnunet-8a5c5861114433d0d267885bb29f21a0c160d1f4.tar.gz gnunet-8a5c5861114433d0d267885bb29f21a0c160d1f4.zip |
implement keeping and timeout of NAT STUN data
Diffstat (limited to 'src/nat/nat_api_stun.c')
-rw-r--r-- | src/nat/nat_api_stun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nat/nat_api_stun.c b/src/nat/nat_api_stun.c index 0d4ba86d1..8f5a5f8f6 100644 --- a/src/nat/nat_api_stun.c +++ b/src/nat/nat_api_stun.c | |||
@@ -229,7 +229,8 @@ GNUNET_NAT_stun_make_request (const char *server, | |||
229 | rh->dns_active = GNUNET_RESOLVER_ip_get (rh->stun_server, | 229 | rh->dns_active = GNUNET_RESOLVER_ip_get (rh->stun_server, |
230 | AF_INET, | 230 | AF_INET, |
231 | TIMEOUT, | 231 | TIMEOUT, |
232 | &stun_dns_callback, rh); | 232 | &stun_dns_callback, |
233 | rh); | ||
233 | if (NULL == rh->dns_active) | 234 | if (NULL == rh->dns_active) |
234 | { | 235 | { |
235 | GNUNET_NAT_stun_make_request_cancel (rh); | 236 | GNUNET_NAT_stun_make_request_cancel (rh); |