- Fix that auth-zone zonefiles use last TTL if no TTL is specified.

This commit is contained in:
W.C.A. Wijngaards 2021-05-12 17:24:03 +02:00
parent 1e85196fd9
commit 9aa072d115
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,6 @@
12 May 2021: Wouter
- Fix that auth-zone zonefiles use last TTL if no TTL is specified.
10 May 2021: Wouter
- Merge PR #487: ifdef RLIMIT_AS in recently added check.

View file

@ -929,6 +929,10 @@ int sldns_fp2wire_rr_buf(FILE* in, uint8_t* rr, size_t* len, size_t* dname_len,
memmove(parse_state->prev_rr, rr, *dname_len);
parse_state->prev_rr_len = (*dname_len);
}
if(r == LDNS_WIREPARSE_ERR_OK && parse_state) {
parse_state->default_ttl = sldns_wirerr_get_ttl(
rr, *len, *dname_len);
}
return r;
}
return LDNS_WIREPARSE_ERR_OK;