From 996028142c5f95492fcd42e69186b95641320c7b Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 28 Jul 1999 02:19:46 +0000 Subject: [PATCH] update message reply support --- lib/dns/message.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dns/message.c b/lib/dns/message.c index eb4b044773..6f5f86149f 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -343,8 +343,6 @@ msginitprivate(dns_message_t *m) m->reserved = 0; m->buffer = NULL; m->need_cctx_cleanup = 0; - m->header_ok = 0; - m->question_ok = 0; } /* @@ -356,6 +354,8 @@ msginit(dns_message_t *m) { msginitheader(m); msginitprivate(m); + m->header_ok = 0; + m->question_ok = 0; } static inline void @@ -1601,7 +1601,6 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) { unsigned int first_section; REQUIRE(DNS_MESSAGE_VALID(msg)); - REQUIRE(msg->from_to_wire == DNS_MESSAGE_INTENTPARSE); REQUIRE((msg->flags & DNS_MESSAGEFLAG_QR) == 0); if (!msg->header_ok)