leave the question section in update responses.
[kai/bind9.git] / lib / dns / message.c
index 51f41985f3c36bad00f499a36260c147510e0d68..d42aba0fbb3c4acc47769ce5a3da07e1db2ae15f 100644 (file)
@@ -2525,7 +2525,8 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
        if (!msg->header_ok)
                return (DNS_R_FORMERR);
        if (msg->opcode != dns_opcode_query &&
-           msg->opcode != dns_opcode_notify)
+           msg->opcode != dns_opcode_notify &&
+           msg->opcode != dns_opcode_update)
                want_question_section = ISC_FALSE;
        if (want_question_section) {
                if (!msg->question_ok)