diff options
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r-- | src/namestore/plugin_namestore_sqlite.c | 7 |
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); |