diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-03 18:12:10 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-03 18:12:10 +0100 |
commit | 3d72be07448fd435640c6d0fdc2859601319d07e (patch) | |
tree | 253ed9212019d08725166300f449645e34c463b1 /src/zonemaster | |
parent | 3146c65c67b93ce4eb5bf27775167fde65f5e3c4 (diff) | |
download | gnunet-3d72be07448fd435640c6d0fdc2859601319d07e.tar.gz gnunet-3d72be07448fd435640c6d0fdc2859601319d07e.zip |
GNS: Introduce CRITICAL flag. Fixes #7169
Diffstat (limited to 'src/zonemaster')
-rw-r--r-- | src/zonemaster/gnunet-service-zonemaster.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zonemaster/gnunet-service-zonemaster.c b/src/zonemaster/gnunet-service-zonemaster.c index bacafb97c..9ff1a97b8 100644 --- a/src/zonemaster/gnunet-service-zonemaster.c +++ b/src/zonemaster/gnunet-service-zonemaster.c | |||
@@ -562,7 +562,11 @@ convert_records_for_export (const struct GNUNET_GNSRECORD_Data *rd, | |||
562 | GNUNET_MIN (rd[i].expiration_time, | 562 | GNUNET_MIN (rd[i].expiration_time, |
563 | min_relative_record_time.rel_value_us); | 563 | min_relative_record_time.rel_value_us); |
564 | } | 564 | } |
565 | rd_public[rd_public_count++] = rd[i]; | 565 | rd_public[rd_public_count] = rd[i]; |
566 | /* Make sure critical record types are published as such */ | ||
567 | if (GNUNET_YES == GNUNET_GNSRECORD_is_critical (rd[i].record_type)) | ||
568 | rd_public[rd_public_count].flags |= GNUNET_GNSRECORD_RF_CRITICAL; | ||
569 | rd_public_count++; | ||
566 | } | 570 | } |
567 | return rd_public_count; | 571 | return rd_public_count; |
568 | } | 572 | } |