- ttl-zero-cacherep, Responses in the last second of their cache TTL,

get an extra second. That makes the TTL not 0, since they are from
  cache and can be cached by the client.
This commit is contained in:
W.C.A. Wijngaards
2024-11-11 15:43:10 +01:00
parent 733d5f7161
commit 50fcf71f04
10 changed files with 29 additions and 14 deletions
+1 -1
View File
@@ -1110,7 +1110,7 @@ static void edns_ede_encode_encodedecode(struct query_info* qinfo,
/* encode */
unit_assert(
reply_info_answer_encode(qinfo, rep, 1, rep->flags, pkt,
0, 0, region, 65535, edns, 0, 0));
0, 0, region, 65535, edns, 0, 0, 0));
/* buffer ready for reading; skip after the question section */
sldns_buffer_skip(pkt, LDNS_HEADER_SIZE);
(void)query_dname_len(pkt);