From ea1d3fd9f54879992fb997a1e94cfd6830085c4b Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Thu, 22 Oct 2020 19:09:12 +0200 Subject: -more gnsrecord API --- src/namestore/plugin_namestore_flat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/namestore/plugin_namestore_flat.c') 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, for (unsigned int i = 0; i < entry->record_count; i++) { - if (GNUNET_GNSRECORD_TYPE_PKEY != entry->record_data[i].record_type) + if (GNUNET_NO == + GNUNET_GNSRECORD_is_zonekey_type (entry->record_data[i].record_type)) + continue; + if (ztn->value_zone->type != entry->record_data[i].record_type) continue; if (0 == memcmp (ztn->value_zone, entry->record_data[i].data, - sizeof(struct GNUNET_IDENTITY_PublicKey))) + entry->record_data[i].data_size)) { ztn->iter (ztn->iter_cls, i + 1, /* zero is illegal! */ -- cgit v1.2.3