]> git.ipfire.org Git - thirdparty/bind9.git/commit
Do not ignore named_server_dumpdb() result code
authorAram Sargsyan <aram@isc.org>
Tue, 24 Sep 2024 08:53:47 +0000 (08:53 +0000)
committerAram Sargsyan <aram@isc.org>
Wed, 25 Sep 2024 08:02:17 +0000 (08:02 +0000)
commit8b866ba8a0bd79addbeebb74919b63b8dbc21737
tree2e4bf683a26b2b1135bce19fa6b871b949a8e571
parent812f0031bf4710d809f0d731457eb69d4b147069
Do not ignore named_server_dumpdb() result code

The named_server_dumpdb() function, which is called when a 'rndc dumpdb'
command is issued, returns a 'isc_result_t' result code and it has been
always ignored since its introduction in
eb8713ed947fdf22a41dad673d561896dd6fe4a2, where it was still called
ns_server_dumpdb(). The orignal reasoning is not preserved, but it could
have been also a simple copy-paste mistake, as there are commands, which
return 'void' and require manually setting 'result = ISC_R_SUCCESS;', as
it was done here. Anyway, named will now return the actual result, and
'rndc' will report an error, when the 'dumpdb' command fails.
bin/named/control.c