From a8b696f30104b1c19939be21d0a04328feeb3e9f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 20 Oct 2009 08:05:36 +0000 Subject: fix --- src/util/container_multihashmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3