aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-09 18:12:19 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-09 18:12:19 +0200
commitfede09823ee9b7e2dfad7cb9db10718761dda2d7 (patch)
tree74af774b52fdc0c664d3f05c0ad13a3a51d81629 /src/namestore
parent466c9bd9bc750b3c763d3ca3bcab1277ba73ee13 (diff)
downloadgnunet-fede09823ee9b7e2dfad7cb9db10718761dda2d7.tar.gz
gnunet-fede09823ee9b7e2dfad7cb9db10718761dda2d7.zip
fix offset computation in flat iterator
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/plugin_namestore_flat.c2
1 files changed, 1 insertions, 1 deletions
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,
573 struct FlatFileEntry *entry = value; 573 struct FlatFileEntry *entry = value;
574 574
575 (void) key; 575 (void) key;
576 ic->pos++;
577 if (0 == ic->limit) 576 if (0 == ic->limit)
578 return GNUNET_NO; 577 return GNUNET_NO;
579 if ( (NULL != ic->zone) && 578 if ( (NULL != ic->zone) &&
@@ -581,6 +580,7 @@ iterate_zones (void *cls,
581 ic->zone, 580 ic->zone,
582 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) ) 581 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) )
583 return GNUNET_YES; 582 return GNUNET_YES;
583 ic->pos++;
584 if (ic->offset > 0) 584 if (ic->offset > 0)
585 { 585 {
586 ic->offset--; 586 ic->offset--;