aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-14 23:16:53 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-14 23:16:53 +0000
commita72a1c6fc09216c5be7f5ee697ff55cf66907c80 (patch)
tree2da519f4a7fb51bb7835a26ef9c8b7c794be5989 /src
parent1ffdb025e05637fff06a7fa81fa8f219511ac03f (diff)
downloadgnunet-a72a1c6fc09216c5be7f5ee697ff55cf66907c80.tar.gz
gnunet-a72a1c6fc09216c5be7f5ee697ff55cf66907c80.zip
-fixing crash, notes
Diffstat (limited to 'src')
-rw-r--r--src/exit/gnunet-daemon-exit.c7
-rw-r--r--src/vpn/gnunet-service-vpn.c16
2 files changed, 17 insertions, 6 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index b0f0d215a..f5dd1f585 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -25,7 +25,14 @@
25 * @author Christian Grothoff 25 * @author Christian Grothoff
26 * 26 *
27 * TODO: 27 * TODO:
28 * - need some logging
29 * - need some statistics
30 * - test
31 *
32 * Code cleanup:
28 * - factor out crc computations from DNS/EXIT/VPN into shared library? 33 * - factor out crc computations from DNS/EXIT/VPN into shared library?
34 *
35 * Design:
29 * - which code should advertise services? the service model is right 36 * - which code should advertise services? the service model is right
30 * now a bit odd, especially as this code DOES the exit and knows 37 * now a bit odd, especially as this code DOES the exit and knows
31 * the DNS "name", but OTOH this is clearly NOT the place to advertise 38 * the DNS "name", but OTOH this is clearly NOT the place to advertise
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 3e8178560..7219471bf 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -28,6 +28,8 @@
28 * 28 *
29 * TODO: 29 * TODO:
30 * Basics: 30 * Basics:
31 * - need some logging
32 * - need some statistics
31 * - test! 33 * - test!
32 * - better message queue management (bounded state, drop oldest/RED?) 34 * - better message queue management (bounded state, drop oldest/RED?)
33 * - actually destroy "stale" tunnels once we have too many! 35 * - actually destroy "stale" tunnels once we have too many!
@@ -2086,12 +2088,14 @@ cleanup_destination_client (void *cls,
2086static void 2088static void
2087client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) 2089client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
2088{ 2090{
2089 GNUNET_CONTAINER_multihashmap_iterate (tunnel_map, 2091 if (NULL != tunnel_map)
2090 &cleanup_tunnel_client, 2092 GNUNET_CONTAINER_multihashmap_iterate (tunnel_map,
2091 client); 2093 &cleanup_tunnel_client,
2092 GNUNET_CONTAINER_multihashmap_iterate (destination_map, 2094 client);
2093 &cleanup_destination_client, 2095 if (NULL != destination_map)
2094 client); 2096 GNUNET_CONTAINER_multihashmap_iterate (destination_map,
2097 &cleanup_destination_client,
2098 client);
2095} 2099}
2096 2100
2097 2101