mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-07 07:19:35 -05:00
- Fix that auth-zone zonefiles use last TTL if no TTL is specified.
This commit is contained in:
parent
1e85196fd9
commit
9aa072d115
2 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue