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

change 'expr == true' to 'expr' in conditionals

This commit is contained in:
Evan Hunt
2020-03-30 13:47:58 -07:00
parent 1093c36648
commit 68a1c9d679
29 changed files with 92 additions and 97 deletions

View File

@@ -2148,7 +2148,7 @@ ns__client_request(isc_nmhandle_t *handle, isc_region_t *region, void *arg) {
* cache there is no point in setting RA.
*/
ra = false;
if (client->view->resolver != NULL && client->view->recursion == true &&
if (client->view->resolver != NULL && client->view->recursion &&
ns_client_checkaclsilent(client, NULL, client->view->recursionacl,
true) == ISC_R_SUCCESS &&
ns_client_checkaclsilent(client, NULL, client->view->cacheacl,
@@ -2163,7 +2163,7 @@ ns__client_request(isc_nmhandle_t *handle, isc_region_t *region, void *arg) {
ra = true;
}
if (ra == true) {
if (ra) {
client->attributes |= NS_CLIENTATTR_RA;
}