From fede09823ee9b7e2dfad7cb9db10718761dda2d7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 9 May 2018 18:12:19 +0200 Subject: fix offset computation in flat iterator --- src/namestore/plugin_namestore_flat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/namestore/plugin_namestore_flat.c b/src/namestore/plugin_namestore_flat.c index c464d4e68..35d8424b4 100644 --- a/src/namestore/plugin_namestore_flat.c +++ b/src/namestore/plugin_namestore_flat.c @@ -573,7 +573,6 @@ iterate_zones (void *cls, struct FlatFileEntry *entry = value; (void) key; - ic->pos++; if (0 == ic->limit) return GNUNET_NO; if ( (NULL != ic->zone) && @@ -581,6 +580,7 @@ iterate_zones (void *cls, ic->zone, sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) ) return GNUNET_YES; + ic->pos++; if (ic->offset > 0) { ic->offset--; -- cgit v1.2.3