From: David Barksdale Date: Tue, 26 Dec 2017 15:54:24 +0000 (-0600) Subject: Prevent multipeermap from being reallocated X-Git-Tag: gnunet-0.11.0rc0~85 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee1c4fa8c667ac60a1ce46f0141dbd322ed131d7;p=oweals%2Fgnunet.git Prevent multipeermap from being reallocated Grothoff points out that multipeermaps grow when 75% full. --- 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++) {