]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
cache: fix incorrect TTL of positive packets in cache
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 29 Mar 2019 19:16:31 +0000 (20:16 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 11 Apr 2019 07:12:47 +0000 (09:12 +0200)
commiteb40d0a08c04ab022ad9f1ce305d8b184407d95a
treebedd739b4f3a42369dc1c06ef37ee017d2ef950b
parent53fef489fa0ea8f33449a71550a8887c43b4ed7f
cache: fix incorrect TTL of positive packets in cache

It's a regression of b00ee5fa8 (v3.0.0).  Fortunately, since that
version we use cache for positive packets only when they are BOGUS
(see `bool want_pkt =`) so that they're available for +cd queries.
Therefore the impact was really negligible, until the DoT module.
lib/cache/entry_pkt.c