aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2018-10-13 22:21:05 +0900
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2018-10-13 22:21:05 +0900
commitec105da10b0e8280e74fc0dc03b9c5973897d372 (patch)
treec1a17db78a07383c136972b945259d88dd0cd1af /src/namestore/plugin_namestore_sqlite.c
parent96e59140512fec897270b27469fce776a5736149 (diff)
downloadgnunet-ec105da10b0e8280e74fc0dc03b9c5973897d372.tar.gz
gnunet-ec105da10b0e8280e74fc0dc03b9c5973897d372.zip
fix broken zone iteration
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index 6960e5d12..07784a779 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -503,7 +503,6 @@ get_records_and_call_iterator (struct Plugin *plugin,
503 503
504 if (NULL == zone_key) 504 if (NULL == zone_key)
505 { 505 {
506 zone_key = &zk;
507 ret = GNUNET_SQ_extract_result (stmt, 506 ret = GNUNET_SQ_extract_result (stmt,
508 rsx); 507 rsx);
509 } 508 }
@@ -537,10 +536,12 @@ get_records_and_call_iterator (struct Plugin *plugin,
537 } 536 }
538 else 537 else
539 { 538 {
539 if (NULL != zone_key)
540 zk = *zone_key;
540 if (NULL != iter) 541 if (NULL != iter)
541 iter (iter_cls, 542 iter (iter_cls,
542 seq + 1, 543 seq + 1,
543 zone_key, 544 &zk,
544 label, 545 label,
545 record_count, 546 record_count,
546 rd); 547 rd);