]> git.ipfire.org Git - thirdparty/unbound.git/commit
Use passed in neg and key cache if non-NULL. 135/head
authorFlorian Obser <florian@narrans.de>
Thu, 19 Dec 2019 12:20:34 +0000 (13:20 +0100)
committerFlorian Obser <florian@narrans.de>
Thu, 19 Dec 2019 12:20:34 +0000 (13:20 +0100)
commitda6ac0c4ff381c16558ffb4568a672e40f122782
treee2daebadf7fee82d63fbf3e1e17d16771d768747
parent1d45b4a1e085acba51e27d6e7d360322959aaceb
Use passed in neg and key cache if non-NULL.

With this the neg and key caches can be shared between multiple
libunbound contexts.

The msg and rrset caches already allowed this since context_finalize()
did not touch those if they are already available and have the correct
size.

Care must be taken to properly unhook the caches from the validator
environment before calling ub_ctx_delete() otherwise one risks double
free or use after free bugs.
validator/validator.c