From: Christian Grothoff Date: Fri, 20 Jan 2012 22:16:29 +0000 (+0000) Subject: -mark function that should never be called as such X-Git-Tag: initial-import-from-subversion-38251~15189 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bd6dc9683d63356d34d0b0d1c3cea4c1b6d67769;p=oweals%2Fgnunet.git -mark function that should never be called as such --- diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 6b89c46ae..4bff262c3 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c @@ -2108,16 +2108,8 @@ inbound_tunnel_cb (void *cls, struct GNUNET_MESH_Tunnel *tunnel, static void tunnel_cleaner (void *cls, const struct GNUNET_MESH_Tunnel *tunnel, void *tunnel_ctx) { - struct TunnelState *ts = tunnel_ctx; - - if (NULL == ts) - { - GNUNET_break (0); - return; - } - GNUNET_assert (ts->tunnel == tunnel); - ts->tunnel = NULL; - free_tunnel_state (ts); + /* we don't have inbound tunnels, so this function should never be called */ + GNUNET_break (0); }