projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331582a
)
fix bug (invariant)
author
Philipp Tölke
<toelke@in.tum.de>
Wed, 15 Jun 2011 07:15:35 +0000
(07:15 +0000)
committer
Philipp Tölke
<toelke@in.tum.de>
Wed, 15 Jun 2011 07:15:35 +0000
(07:15 +0000)
;
src/vpn/gnunet-daemon-exit.c
patch
|
blob
|
history
diff --git
a/src/vpn/gnunet-daemon-exit.c
b/src/vpn/gnunet-daemon-exit.c
index 2f8ce774b87de3f32dce3664337859bffabe2803..82f9624e432d963b2eec513f8790f5d085cae56c 100644
(file)
--- 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,
struct redirect_state *state =
GNUNET_CONTAINER_multihashmap_get (tcp_connections, &hash);
+ if (state == NULL) return;
+
/* Mark this connection as freshly used */
GNUNET_CONTAINER_heap_update_cost (tcp_connections_heap, state->heap_node,
GNUNET_TIME_absolute_get ().abs_value);