aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-12-26 09:54:24 -0600
committerDavid Barksdale <amatus@amat.us>2017-12-26 09:54:24 -0600
commitee1c4fa8c667ac60a1ce46f0141dbd322ed131d7 (patch)
tree3674a82bd2c3434785250af80c8106b653bd1aba /src/cadet
parent24f4c0aa8302caaef32e8d70e8c54bafada848d8 (diff)
downloadgnunet-ee1c4fa8c667ac60a1ce46f0141dbd322ed131d7.tar.gz
gnunet-ee1c4fa8c667ac60a1ce46f0141dbd322ed131d7.zip
Prevent multipeermap from being reallocated
Grothoff points out that multipeermaps grow when 75% full.
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_core.c2
1 files changed, 1 insertions, 1 deletions
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,
780 } 780 }
781 /* Check for loops */ 781 /* Check for loops */
782 struct GNUNET_CONTAINER_MultiPeerMap *map; 782 struct GNUNET_CONTAINER_MultiPeerMap *map;
783 map = GNUNET_CONTAINER_multipeermap_create (path_length, 783 map = GNUNET_CONTAINER_multipeermap_create (path_length * 2,
784 GNUNET_YES); 784 GNUNET_YES);
785 GNUNET_assert (NULL != map); 785 GNUNET_assert (NULL != map);
786 for (off = 0; off < path_length; off++) { 786 for (off = 0; off < path_length; off++) {