fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 20 Oct 2009 08:05:36 +0000 (08:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 20 Oct 2009 08:05:36 +0000 (08:05 +0000)
src/util/container_multihashmap.c

index 38cd65753899cc8b717d5708ee794058bf3bfa7e..2c88b1a52aa95dbfe85c6b99920325a7502f0b6e 100644 (file)
@@ -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;