remove route also from routes
authorChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2017 19:33:43 +0000 (20:33 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2017 19:33:43 +0000 (20:33 +0100)
src/cadet/cadet.conf.in
src/cadet/gnunet-service-cadet-new_core.c

index 296a648e28db224fbb50e33d551de3d5055662ce..86ba2e535d0a2b6e839c2ccd52a8a4b027822930 100644 (file)
@@ -4,7 +4,7 @@ AUTOSTART = @AUTOSTART@
 @JAVAPORT@PORT = 2096
 HOSTNAME = localhost
 BINARY = gnunet-service-cadet-new
-PREFIX = valgrind --leak-check=yes
+PREFIX = valgrind --leak-check=yes
 ACCEPT_FROM = 127.0.0.1;
 ACCEPT_FROM6 = ::1;
 UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-cadet.sock
index b79b87de854c1090399e7b5274550e9a66601a4e..fda4a7b84231801e0b4448403961d62374711565 100644 (file)
@@ -326,6 +326,10 @@ destroy_route (struct CadetRoute *route)
        GNUNET_sh2s (&route->cid.connection_of_tunnel));
   GNUNET_assert (route ==
                  GNUNET_CONTAINER_heap_remove_node (route->hn));
+  GNUNET_assert (GNUNET_YES ==
+                 GNUNET_CONTAINER_multishortmap_remove (routes,
+                                                        &route->cid.connection_of_tunnel,
+                                                        route));
   destroy_direction (&route->prev);
   destroy_direction (&route->next);
   GNUNET_free (route);