aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_multihashmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/container_multihashmap.c')
-rw-r--r--src/util/container_multihashmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/container_multihashmap.c b/src/util/container_multihashmap.c
index 9ef8f74a4..a365e81d9 100644
--- a/src/util/container_multihashmap.c
+++ b/src/util/container_multihashmap.c
@@ -872,7 +872,9 @@ GNUNET_CONTAINER_multihashmap_iterator_next (struct GNUNET_CONTAINER_MultiHashMa
872 return GNUNET_YES; 872 return GNUNET_YES;
873 } 873 }
874 } 874 }
875 iter->idx++; 875 iter->idx += 1;
876 if (iter->idx < iter->map->map_length)
877 iter->me = iter->map->map[iter->idx];
876 } 878 }
877} 879}
878 880