2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

update variable name to better reflect reality

(cherry picked from commit 51a82fe30d)
This commit is contained in:
Mark Andrews
2015-05-11 13:41:13 +10:00
parent 844b568182
commit 1acfed3dac

View File

@@ -2543,7 +2543,7 @@ dns_message_peekheader(isc_buffer_t *source, dns_messageid_t *idp,
isc_result_t isc_result_t
dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) { 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; isc_result_t result;
REQUIRE(DNS_MESSAGE_VALID(msg)); 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) msg->opcode != dns_opcode_notify)
want_question_section = ISC_FALSE; want_question_section = ISC_FALSE;
if (msg->opcode == dns_opcode_update) if (msg->opcode == dns_opcode_update)
clear_after = DNS_SECTION_PREREQUISITE; clear_from = DNS_SECTION_PREREQUISITE;
else if (want_question_section) { else if (want_question_section) {
if (!msg->question_ok) if (!msg->question_ok)
return (DNS_R_FORMERR); return (DNS_R_FORMERR);
clear_after = DNS_SECTION_ANSWER; clear_from = DNS_SECTION_ANSWER;
} else } else
clear_after = DNS_SECTION_QUESTION; clear_from = DNS_SECTION_QUESTION;
msg->from_to_wire = DNS_MESSAGE_INTENTRENDER; msg->from_to_wire = DNS_MESSAGE_INTENTRENDER;
msgresetnames(msg, clear_after); msgresetnames(msg, clear_from);
msgresetopt(msg); msgresetopt(msg);
msgresetsigs(msg, ISC_TRUE); msgresetsigs(msg, ISC_TRUE);
msginitprivate(msg); msginitprivate(msg);