-mark function that should never be called as such
authorChristian Grothoff <christian@grothoff.org>
Fri, 20 Jan 2012 22:16:29 +0000 (22:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 20 Jan 2012 22:16:29 +0000 (22:16 +0000)
src/vpn/gnunet-service-vpn.c

index 6b89c46ae2277a250b5bf560de4634ed08076c88..4bff262c39fb67ee6f5132f384d566935d55a5d6 100644 (file)
@@ -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);
 }