aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:35 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:35 +0000
commitf0845c4d4efb76b89cec4621b215460cc26c30ee (patch)
tree4b51732679a40f2d65455ce2db51db9e76d13655 /src/vpn
parent331582ad4f7b929515171b67b1b011fbd3b70265 (diff)
downloadgnunet-f0845c4d4efb76b89cec4621b215460cc26c30ee.tar.gz
gnunet-f0845c4d4efb76b89cec4621b215460cc26c30ee.zip
fix bug (invariant)
;
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-daemon-exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c
index 2f8ce774b..82f9624e4 100644
--- a/src/vpn/gnunet-daemon-exit.c
+++ b/src/vpn/gnunet-daemon-exit.c
@@ -356,6 +356,8 @@ tcp_from_helper (struct tcp_pkt *tcp, unsigned char *dadr, size_t addrlen,
356 struct redirect_state *state = 356 struct redirect_state *state =
357 GNUNET_CONTAINER_multihashmap_get (tcp_connections, &hash); 357 GNUNET_CONTAINER_multihashmap_get (tcp_connections, &hash);
358 358
359 if (state == NULL) return;
360
359 /* Mark this connection as freshly used */ 361 /* Mark this connection as freshly used */
360 GNUNET_CONTAINER_heap_update_cost (tcp_connections_heap, state->heap_node, 362 GNUNET_CONTAINER_heap_update_cost (tcp_connections_heap, state->heap_node,
361 GNUNET_TIME_absolute_get ().abs_value); 363 GNUNET_TIME_absolute_get ().abs_value);