From 1acfed3dac1e02f4cbac811a06147377ecfac4c4 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 11 May 2015 13:41:13 +1000 Subject: [PATCH] update variable name to better reflect reality (cherry picked from commit 51a82fe30d59ab84b4dd945d1b4408a93ba782a3) --- lib/dns/message.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index 267e1643b6..ef755b1322 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -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);