]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
cache: fix TTL overflow in packet due to min_ttl
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 31 Jul 2018 09:05:06 +0000 (11:05 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 2 Aug 2018 10:04:01 +0000 (10:04 +0000)
commit4ff502023088d5ffa028f095e95bb943c841dae1
tree3405b537371d542fec533374f4ebf41f04d191a3
parentee08f3eb1e386b6527b8bd40740b0b8d7185a541
cache: fix TTL overflow in packet due to min_ttl

- `min_ttl()` enforces packet being alive longer than original TTL
  of some records; but
- the packet is copied to cache as it was.

Resolution: just serve packet the same but with those record's TTLs
remaining at zero.
lib/cache/entry_pkt.c