]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor check header
authorOndřej Surý <ondrej@isc.org>
Tue, 23 Sep 2025 07:54:11 +0000 (09:54 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 23 Sep 2025 22:07:07 +0000 (00:07 +0200)
commit6b0e6cb058a02af32f139d71bba549412463a7b4
treef33899a1f2a3b1a54a692c9306cc2b079b30689c
parent133d76c05e25aa69f02be9955feb4ec50b99eb69
Refactor check header

There was a pattern where first the header was checked for NULL
and then for being stale. In both cases the code path is the same
so it makes sense to put them in a separate function.

Co-authored-by: Matthijs Mekking <matthijs@isc.org>
lib/dns/qpcache.c