mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-22 01:34:56 +02:00
- For #1411: Fix that the lookup for DNAME uses flag. Fix assertion
in expired calc debug routine.
This commit is contained in:
@@ -1366,7 +1366,9 @@ msgparse_rrset_remove_rr(const char* str, sldns_buffer* pkt, struct rrset_parse*
|
||||
time_t debug_expired_reply_ttl_calc(time_t ttl, time_t ttl_add) {
|
||||
/* Check that we are serving expired when this is called */
|
||||
/* ttl (absolute) should be later than ttl_add */
|
||||
log_assert(SERVE_EXPIRED && ttl_add <= ttl);
|
||||
/* It is also called during the grace period for type DNAME,
|
||||
* and then the 'SERVE_EXPIRED' boolean may not be on. */
|
||||
log_assert(ttl_add <= ttl);
|
||||
return (SERVE_EXPIRED_REPLY_TTL < (ttl) - (ttl_add) ?
|
||||
SERVE_EXPIRED_REPLY_TTL : (ttl) - (ttl_add));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user