From: Philipp Tölke Date: Wed, 15 Jun 2011 07:15:35 +0000 (+0000) Subject: fix bug (invariant) X-Git-Tag: initial-import-from-subversion-38251~18195 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0845c4d4efb76b89cec4621b215460cc26c30ee;p=oweals%2Fgnunet.git fix bug (invariant) ; --- 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, 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);