]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
update variable name to better reflect reality
authorMark Andrews <marka@isc.org>
Mon, 11 May 2015 03:41:13 +0000 (13:41 +1000)
committerMark Andrews <marka@isc.org>
Mon, 11 May 2015 03:42:04 +0000 (13:42 +1000)
(cherry picked from commit 51a82fe30d59ab84b4dd945d1b4408a93ba782a3)

lib/dns/message.c

index 267e1643b61c3e6f929af476a04c280bf9ebd385..ef755b132280ec311758004866f1cbe843e3c8a3 100644 (file)
@@ -2543,7 +2543,7 @@ dns_message_peekheader(isc_buffer_t *source, dns_messageid_t *idp,
 
 isc_result_t
 dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
-       unsigned int clear_after;
+       unsigned int clear_from;
        isc_result_t result;
 
        REQUIRE(DNS_MESSAGE_VALID(msg));
@@ -2555,15 +2555,15 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
            msg->opcode != dns_opcode_notify)
                want_question_section = ISC_FALSE;
        if (msg->opcode == dns_opcode_update)
-               clear_after = DNS_SECTION_PREREQUISITE;
+               clear_from = DNS_SECTION_PREREQUISITE;
        else if (want_question_section) {
                if (!msg->question_ok)
                        return (DNS_R_FORMERR);
-               clear_after = DNS_SECTION_ANSWER;
+               clear_from = DNS_SECTION_ANSWER;
        } else
-               clear_after = DNS_SECTION_QUESTION;
+               clear_from = DNS_SECTION_QUESTION;
        msg->from_to_wire = DNS_MESSAGE_INTENTRENDER;
-       msgresetnames(msg, clear_after);
+       msgresetnames(msg, clear_from);
        msgresetopt(msg);
        msgresetsigs(msg, ISC_TRUE);
        msginitprivate(msg);