]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: check plugin config before registering
authorColin Vidal <colin@isc.org>
Wed, 1 Oct 2025 09:10:40 +0000 (11:10 +0200)
committerColin Vidal <colin@isc.org>
Wed, 1 Oct 2025 09:10:40 +0000 (11:10 +0200)
In `named_config_parsefile()`, when checking the validity of
`named.conf`, the checking of plugin correctness was deliberately
postponed until the plugin is loaded and registered. However,
the checking was never actually done: the `plugin_register()`
implementation was called, but `plugin_check()` was not.

`ns_plugin_register()` (used by `named`) now calls the check function
before the register function, and aborts if either one fails.
`ns_plugin_check()` (used by `named-checkconf`) calls only
the check function.

Merge branch 'each-check-plugin-named' into 'main'

See merge request isc-projects/bind9!11031


Trivial merge