aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_flat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_namestore_flat.c')
-rw-r--r--src/namestore/plugin_namestore_flat.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/namestore/plugin_namestore_flat.c b/src/namestore/plugin_namestore_flat.c
index 1a071fd80..9ccc90cfd 100644
--- a/src/namestore/plugin_namestore_flat.c
+++ b/src/namestore/plugin_namestore_flat.c
@@ -698,11 +698,14 @@ zone_to_name (void *cls,
698 698
699 for (unsigned int i = 0; i < entry->record_count; i++) 699 for (unsigned int i = 0; i < entry->record_count; i++)
700 { 700 {
701 if (GNUNET_GNSRECORD_TYPE_PKEY != entry->record_data[i].record_type) 701 if (GNUNET_NO ==
702 GNUNET_GNSRECORD_is_zonekey_type (entry->record_data[i].record_type))
703 continue;
704 if (ztn->value_zone->type != entry->record_data[i].record_type)
702 continue; 705 continue;
703 if (0 == memcmp (ztn->value_zone, 706 if (0 == memcmp (ztn->value_zone,
704 entry->record_data[i].data, 707 entry->record_data[i].data,
705 sizeof(struct GNUNET_IDENTITY_PublicKey))) 708 entry->record_data[i].data_size))
706 { 709 {
707 ztn->iter (ztn->iter_cls, 710 ztn->iter (ztn->iter_cls,
708 i + 1, /* zero is illegal! */ 711 i + 1, /* zero is illegal! */