s4:heimdal: import lorikeet-heimdal-201107241840 (commit 0fdf11fa3cdb47df9f5393ebf36d...
[Samba.git] / examples / bind9-patches / 0001-leave-the-question-section-in-update-responses.patch
blob3716dd4ab634ea40cd083c99c6281fbb8e825bfe
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
8 update.
9 ---
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) {
18 if (!msg->header_ok)
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)
28 1.6.3.3