1 From 1d97835f07fd5142187629941422f87b33015414 Mon Sep 17 00:00:00 2001
2 From: Andrew Tridgell <tridge@samba.org>
3 Date: Wed, 17 Feb 2010 10:47:59 +1100
4 Subject: [PATCH 1/5] leave the question section in update responses.
6 This fixes TSIG-GSS updates from windows7 and w2k8r2, which require
7 the question to be included in the initial refusal for the unsigned
10 lib/dns/message.c | 3 ++-
11 1 files changed, 2 insertions(+), 1 deletions(-)
13 diff --git a/lib/dns/message.c b/lib/dns/message.c
14 index b541635..ae4965f 100644
15 --- a/lib/dns/message.c
16 +++ b/lib/dns/message.c
17 @@ -2474,7 +2474,8 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) {
19 return (DNS_R_FORMERR);
20 if (msg->opcode != dns_opcode_query &&
21 - msg->opcode != dns_opcode_notify)
22 + msg->opcode != dns_opcode_notify &&
23 + msg->opcode != dns_opcode_update)
24 want_question_section = ISC_FALSE;
25 if (want_question_section) {
26 if (!msg->question_ok)