From ee1c4fa8c667ac60a1ce46f0141dbd322ed131d7 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Tue, 26 Dec 2017 09:54:24 -0600 Subject: [PATCH] Prevent multipeermap from being reallocated Grothoff points out that multipeermaps grow when 75% full. --- src/cadet/gnunet-service-cadet_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cadet/gnunet-service-cadet_core.c b/src/cadet/gnunet-service-cadet_core.c index cb213fc54..99957d8a1 100644 --- a/src/cadet/gnunet-service-cadet_core.c +++ b/src/cadet/gnunet-service-cadet_core.c @@ -780,7 +780,7 @@ handle_connection_create (void *cls, } /* Check for loops */ struct GNUNET_CONTAINER_MultiPeerMap *map; - map = GNUNET_CONTAINER_multipeermap_create (path_length, + map = GNUNET_CONTAINER_multipeermap_create (path_length * 2, GNUNET_YES); GNUNET_assert (NULL != map); for (off = 0; off < path_length; off++) { -- 2.25.1