diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-09 18:12:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-09 18:12:19 +0200 |
commit | fede09823ee9b7e2dfad7cb9db10718761dda2d7 (patch) | |
tree | 74af774b52fdc0c664d3f05c0ad13a3a51d81629 /src | |
parent | 466c9bd9bc750b3c763d3ca3bcab1277ba73ee13 (diff) | |
download | gnunet-fede09823ee9b7e2dfad7cb9db10718761dda2d7.tar.gz gnunet-fede09823ee9b7e2dfad7cb9db10718761dda2d7.zip |
fix offset computation in flat iterator
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/plugin_namestore_flat.c | 2 |
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--; |