- Feedback for PR #407.

This commit is contained in:
George Thessalonikefs
2021-01-19 20:09:34 +01:00
parent 9056613a79
commit 38e12229b8
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -494,12 +494,12 @@ lz_mark_soa_for_zone(struct local_zone* z, struct ub_packed_rrset_key* soa_rrset
if(!rrset_insert_rr(z->region, pd, rdata, rdata_len, ttl, rrstr))
return 0;
/* last 4 bytes are minimum ttl in network format */
if(pd->count == 0 || pd->rr_len[0] < 2+4) {
if(pd->count == 0 || pd->rr_len[0] < 2+4)
return 0;
}
minimum = (time_t)sldns_read_uint32(pd->rr_data[0]+(pd->rr_len[0]-4));
pd->ttl = ttl<minimum?ttl:minimum;
pd->rr_ttl[0] = pd->ttl;
minimum = ttl<minimum?ttl:minimum;
pd->ttl = minimum;
pd->rr_ttl[0] = minimum;
z->soa_negative = rrset_negative;
return 1;
+1 -1
View File
@@ -1,7 +1,7 @@
; config options
server:
target-fetch-policy: "0 0 0 0 0"
; Options for singed zone. The zone is partially copied from val_negcache_nxdomain.rpl
; Options for signed zone. The zone is partially copied from val_negcache_nxdomain.rpl
trust-anchor: "testzone.nlnetlabs.nl. IN DS 2926 8 2 6f8512d1e82eecbd684fc4a76f39f8c5b411af385494873bdead663ddb78a88b"
val-override-date: "20180213111425"
qname-minimisation: "no"