]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
cache: avoid some crashes
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 10 Oct 2018 15:00:07 +0000 (17:00 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 16 Oct 2018 13:35:59 +0000 (15:35 +0200)
commitc22bff61cf3e2682a2ca861072877a3c53e12d45
tree2ee686491939ff09c9b80f4de85bcd7a3b8fba0b
parent3e215037b7221f728396e647b0855b9cfa2b4a5a
cache: avoid some crashes

It's actually possible to start queries without any cache open,
e.g. add `resolve('.', kres.type.DNSKEY)` into your configuration.
If that happens, avoid the cache module dereferencing a NULL pointer.
lib/cache/api.c