mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-07 10:22:04 -04:00
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 ineb8713ed94, 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. (cherry picked from commit8b866ba8a0)
This commit is contained in:
parent
12fe4d9f75
commit
782a570052
1 changed files with 1 additions and 2 deletions
|
|
@ -210,8 +210,7 @@ named_control_docommand(isccc_sexpr_t *message, bool readonly,
|
|||
{
|
||||
result = named_server_dnstap(named_g_server, lex, text);
|
||||
} else if (command_compare(command, NAMED_COMMAND_DUMPDB)) {
|
||||
named_server_dumpdb(named_g_server, lex, text);
|
||||
result = ISC_R_SUCCESS;
|
||||
result = named_server_dumpdb(named_g_server, lex, text);
|
||||
} else if (command_compare(command, NAMED_COMMAND_DUMPSTATS)) {
|
||||
result = named_server_dumpstats(named_g_server);
|
||||
} else if (command_compare(command, NAMED_COMMAND_FETCHLIMIT)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue