2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Change the ISC_R_SUCCESS to DNS_RRL_RESULT_OK in dns_rrl()

There's value mismatch between the return type of dns_rrl() that's
dns_rrl_result_t and ISC_R_SUCCESS which belongs to isc_result_t.  This
works incidentally, because DNS_RRL_RESULT_OK == ISC_R_SUCCESS.

This would break when we change isc_result_t to be static enum in
consecutive commit.  Change the value to match the type.
This commit is contained in:
Ondřej Surý
2021-10-04 17:14:53 +02:00
parent 4445d0a7d6
commit 4d85040df5

View File

@@ -1113,7 +1113,7 @@ dns_rrl(dns_view_t *view, const isc_sockaddr_t *client_addr, bool is_tcp,
}
}
UNLOCK(&rrl->lock);
return (ISC_R_SUCCESS);
return (DNS_RRL_RESULT_OK);
}
/*