aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-02 15:53:34 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-02 15:53:34 +0100
commitc25fa6abad5893c052b05e2fd23d6fd8fee1a0cf (patch)
treea682d59746f2b693a1db4b24f9e1e180ac4207bc
parentedbb87266a92db6a08dd38963829cad954cceef6 (diff)
downloadgnunet-c25fa6abad5893c052b05e2fd23d6fd8fee1a0cf.tar.gz
gnunet-c25fa6abad5893c052b05e2fd23d6fd8fee1a0cf.zip
fix #5467
-rw-r--r--src/util/container_multihashmap32.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/util/container_multihashmap32.c b/src/util/container_multihashmap32.c
index 016dbabcc..72940489e 100644
--- a/src/util/container_multihashmap32.c
+++ b/src/util/container_multihashmap32.c
@@ -265,11 +265,15 @@ GNUNET_CONTAINER_multihashmap32_iterate (struct GNUNET_CONTAINER_MultiHashMap32
265 if (GNUNET_OK != it (it_cls, 265 if (GNUNET_OK != it (it_cls,
266 e->key, 266 e->key,
267 e->value)) 267 e->value))
268 {
269 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
268 return GNUNET_SYSERR; 270 return GNUNET_SYSERR;
271 }
269 } 272 }
270 count++; 273 count++;
271 } 274 }
272 } 275 }
276 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
273 return count; 277 return count;
274} 278}
275 279
@@ -567,9 +571,13 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (struct GNUNET_CONTAINER_MultiHashM
567 (GNUNET_OK != it (it_cls, 571 (GNUNET_OK != it (it_cls,
568 key, 572 key,
569 e->value)) ) 573 e->value)) )
570 return GNUNET_SYSERR; 574 {
575 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
576 return GNUNET_SYSERR;
577 }
571 count++; 578 count++;
572 } 579 }
580 GNUNET_assert (--map->next_cache_off < NEXT_CACHE_SIZE);
573 return count; 581 return count;
574} 582}
575 583