fctx->attributes |= FCTX_ATTR_TRIEDFIND;
find = fctx->find;
- if (find == NULL)
+ if (find == NULL) {
find = ISC_LIST_HEAD(fctx->finds);
- else {
+ } else {
find = ISC_LIST_NEXT(find, publink);
if (find == NULL)
find = ISC_LIST_HEAD(fctx->finds);
fctx->attributes |= FCTX_ATTR_TRIEDALT;
find = fctx->altfind;
- if (find == NULL)
+ if (find == NULL) {
find = ISC_LIST_HEAD(fctx->altfinds);
- else {
+ } else {
find = ISC_LIST_NEXT(find, publink);
if (find == NULL)
find = ISC_LIST_HEAD(fctx->altfinds);
addrinfo = fctx_nextaddress(fctx);
/* Try to find an address that isn't over quota */
- while (addrinfo != NULL && dns_adbentry_overquota(addrinfo->entry))
+ while (addrinfo != NULL && dns_adbentry_overquota(addrinfo->entry)) {
addrinfo = fctx_nextaddress(fctx);
+ }
if (addrinfo == NULL) {
/* We have no more addresses. Start over. */
addrinfo = fctx_nextaddress(fctx);
while (addrinfo != NULL &&
- dns_adbentry_overquota(addrinfo->entry))
+ dns_adbentry_overquota(addrinfo->entry)) {
addrinfo = fctx_nextaddress(fctx);
+ }
/*
* While we may have addresses from the ADB, they
UNLOCK(&res->buckets[bucketnum].lock);
if (bucket_empty)
empty_bucket(res);
- } else if (retrying)
+ } else if (retrying) {
inc_stats(res, dns_resstatscounter_retry);
+ }
}
static void