2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Remove a redundant log message and a comment

If val->result is not ISC_R_SUCCESS, a similar message is logged
further down in the function. Remove the redundant log message.

Also remove an unnecessary code comment line.
This commit is contained in:
Aram Sargsyan
2024-03-25 14:20:24 +00:00
parent 424cb59a43
commit a6c6ad048d

View File

@@ -1638,11 +1638,7 @@ validate_answer_finish(void *arg) {
dns_validator_t *val = arg;
isc_result_t result = ISC_R_UNSET;
if (val->result != ISC_R_SUCCESS) {
validator_log(val, ISC_LOG_DEBUG(3),
"failed to verify rdataset: %s",
isc_result_totext(val->result));
} else {
if (val->result == ISC_R_SUCCESS) {
dns_rdataset_trimttl(val->rdataset, val->sigrdataset,
val->siginfo, val->start,
val->view->acceptexpired);
@@ -1659,7 +1655,6 @@ validate_answer_finish(void *arg) {
switch (val->result) {
case ISC_R_CANCELED:
/* The validation was canceled */
validator_log(val, ISC_LOG_DEBUG(3), "validation was canceled");
validate_async_done(val, val->result);
return;