diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-05 18:56:01 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-05 18:56:01 +0100 |
commit | 2c3a47c48049f78a9ce467f21dff20ae3a0ae494 (patch) | |
tree | 604a9b373e1d9048d07f4b2436fd08afbbec91f0 /src/zonemaster/gnunet-service-zonemaster-monitor.c | |
parent | aa85ac347e31b22bcd86c6fbe9875dc4ffa93229 (diff) | |
download | gnunet-2c3a47c48049f78a9ce467f21dff20ae3a0ae494.tar.gz gnunet-2c3a47c48049f78a9ce467f21dff20ae3a0ae494.zip |
-fix issue with tombstone deletion when records are added
Diffstat (limited to 'src/zonemaster/gnunet-service-zonemaster-monitor.c')
-rw-r--r-- | src/zonemaster/gnunet-service-zonemaster-monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zonemaster/gnunet-service-zonemaster-monitor.c b/src/zonemaster/gnunet-service-zonemaster-monitor.c index 081398f0e..b51d1cb97 100644 --- a/src/zonemaster/gnunet-service-zonemaster-monitor.c +++ b/src/zonemaster/gnunet-service-zonemaster-monitor.c | |||
@@ -265,13 +265,13 @@ convert_records_for_export (const struct GNUNET_GNSRECORD_Data *rd, | |||
265 | now = GNUNET_TIME_absolute_get (); | 265 | now = GNUNET_TIME_absolute_get (); |
266 | for (unsigned int i = 0; i < rd_count; i++) | 266 | for (unsigned int i = 0; i < rd_count; i++) |
267 | { | 267 | { |
268 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) | ||
269 | continue; | ||
270 | if (GNUNET_GNSRECORD_TYPE_TOMBSTONE == rd[i].record_type) | 268 | if (GNUNET_GNSRECORD_TYPE_TOMBSTONE == rd[i].record_type) |
271 | { | 269 | { |
272 | tombstone = rd[i].data; | 270 | tombstone = rd[i].data; |
273 | continue; | 271 | continue; |
274 | } | 272 | } |
273 | if (0 != (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)) | ||
274 | continue; | ||
275 | if ((0 == (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) && | 275 | if ((0 == (rd[i].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)) && |
276 | (rd[i].expiration_time < now.abs_value_us)) | 276 | (rd[i].expiration_time < now.abs_value_us)) |
277 | continue; /* record already expired, skip it */ | 277 | continue; /* record already expired, skip it */ |