]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix possible NULL dereference in cd->dlz_destroy()
authorOndřej Surý <ondrej@isc.org>
Tue, 27 Oct 2020 13:18:43 +0000 (14:18 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 28 Oct 2020 14:48:58 +0000 (15:48 +0100)
commit38f34c266dc204094812d9e901507a865d441a03
treebcc67a3b7f171482cabc2942d7472d7e66c1b0ec
parent37b9511ce1dd9ba66a6620c5ff617016eb81188f
Fix possible NULL dereference in cd->dlz_destroy()

If the call to cd->dlz_create() in dlopen_dlz_create() fails, cd->dbdata
may be NULL when dlopen_dlz_destroy() gets called in the cleanup path
and passing NULL to the cd->dlz_destroy() callback may cause a NULL
dereference.  Ensure that does not happen by checking whether cd->dbdata
is non-NULL before calling the cd->dlz_destroy() callback.
bin/named/unix/dlz_dlopen_driver.c