gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: Prevent multipeermap from b


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: Prevent multipeermap from being reallocated
Date: Tue, 26 Dec 2017 16:55:58 +0100

This is an automated email from the git hooks/post-receive script.

david-barksdale pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new ee1c4fa8c Prevent multipeermap from being reallocated
ee1c4fa8c is described below

commit ee1c4fa8c667ac60a1ce46f0141dbd322ed131d7
Author: David Barksdale <address@hidden>
AuthorDate: Tue Dec 26 09:54:24 2017 -0600

    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++) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]