Commit 0bb6be99 authored by Vladimír Čunát's avatar Vladimír Čunát

cache: fix incorrect TTL of positive packets in cache

It's a regression of b00ee5fa (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.
parent df6b9f2f
Pipeline #47042 failed with stages
in 37 seconds
......@@ -48,6 +48,7 @@ uint32_t packet_ttl(const knot_pkt_t *pkt, bool is_negative)
continue; /* Skip metatypes. */
}
ttl = MIN(ttl, rr->ttl);
has_ttl = true;
}
}
/* If no valid TTL present, go with zero (will get clamped to minimum). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment