From: Christian Grothoff Date: Tue, 20 Oct 2009 08:05:36 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~23306 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8b696f30104b1c19939be21d0a04328feeb3e9f;p=oweals%2Fgnunet.git fix --- diff --git a/src/util/container_multihashmap.c b/src/util/container_multihashmap.c index 38cd65753..2c88b1a52 100644 --- a/src/util/container_multihashmap.c +++ b/src/util/container_multihashmap.c @@ -403,7 +403,10 @@ GNUNET_CONTAINER_multihashmap_put (struct GNUNET_CONTAINER_MultiHashMap *map, } } if (map->size / 3 >= map->map_length / 4) - grow (map); + { + grow (map); + i = idx_of (map, key); + } e = GNUNET_malloc (sizeof (struct MapEntry)); e->key = *key; e->value = value;