]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
layer/iterate: nitpick - better variable name
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Wed, 22 Mar 2017 08:50:19 +0000 (09:50 +0100)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Wed, 22 Mar 2017 08:50:19 +0000 (09:50 +0100)
lib/layer/iterate.c

index c6c768033cc59b16c105af5ba1c8b0ced4f07a84..ebb709aa2e6fca4258a31c03c5bf28755b47b8ae 100644 (file)
@@ -326,12 +326,12 @@ static int process_authority(knot_pkt_t *pkt, struct kr_request *req)
 #endif
        /* Remember current bailiwick for NS processing. */
        const knot_dname_t *current_zone_cut = qry->zone_cut.name;
-       bool authority_record_exist = false;
+       bool ns_record_exists = false;
        /* Update zone cut information. */
        for (unsigned i = 0; i < ns->count; ++i) {
                const knot_rrset_t *rr = knot_pkt_rr(ns, i);
                if (rr->type == KNOT_RRTYPE_NS) {
-                       authority_record_exist = true;
+                       ns_record_exists = true;
                        int state = update_cut(pkt, rr, req, current_zone_cut);
                        switch(state) {
                        case KR_STATE_DONE: result = state; break;
@@ -347,7 +347,7 @@ static int process_authority(knot_pkt_t *pkt, struct kr_request *req)
        if ((qry->flags & QUERY_DNSSEC_WANT) && (result == KR_STATE_CONSUME)) {
                if (knot_wire_get_aa(pkt->wire) == 0 &&
                    knot_wire_get_ancount(pkt->wire) == 0 &&
-                   authority_record_exist) {
+                   ns_record_exists) {
                        /* Unhelpful referral
                           Prevent from validating as an authoritative answer */
                        result = KR_STATE_DONE;