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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user