]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Style nits
authorWitold Kręcicki <wpk@isc.org>
Mon, 29 Oct 2018 19:21:23 +0000 (19:21 +0000)
committerWitold Kręcicki <wpk@isc.org>
Mon, 29 Oct 2018 19:22:10 +0000 (19:22 +0000)
lib/dns/resolver.c

index 08898f5d32ef1e8ee1c57666a3fc1def6b08dd7b..51b7f18592c8908bc37f41104942b3e76bd4ecd0 100644 (file)
@@ -3812,9 +3812,9 @@ fctx_nextaddress(fetchctx_t *fctx) {
        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);
@@ -3857,9 +3857,9 @@ fctx_nextaddress(fetchctx_t *fctx) {
        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);
@@ -3952,8 +3952,9 @@ fctx_try(fetchctx_t *fctx, bool retrying, bool badcache) {
        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. */
@@ -3978,8 +3979,9 @@ fctx_try(fetchctx_t *fctx, bool retrying, bool badcache) {
                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
@@ -4036,8 +4038,9 @@ fctx_try(fetchctx_t *fctx, bool retrying, bool badcache) {
                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