]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/resolve: overlay is not copied on startup
authorMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 20 Jul 2015 22:42:48 +0000 (00:42 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 20 Jul 2015 22:42:48 +0000 (00:42 +0200)
commit37fcd6c3b01cd2f4fcd2c680368ecc92dbea5484
treeb4058fcaccf02eb931b84db5cdaae2227c5cc6f6
parent4c5b87115473db3cb28f19dc62bf05291c2b2e2f
lib/resolve: overlay is not copied on startup

this fixes a problem when a module was removed, but pending
queries referenced it, causing a crash. usually when the
server was busy and a module was unloaded.
as we don’t need to copy layers at all, they’re just iterated
from the array of modules using a macro
daemon/worker.c
lib/resolve.c
lib/resolve.h