1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/examples/bind9-patches/0001-leave-the-question-section-in-update-responses.patch
Andrew Tridgell 5c716146e8 examples: add bind9 patches for TSIG-GSS support
We will point at these from the Samba4 HOWTO
2010-02-17 19:43:32 +11:00

30 lines
991 B
Diff

From 1d97835f07fd5142187629941422f87b33015414 Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <tridge@samba.org>
Date: Wed, 17 Feb 2010 10:47:59 +1100
Subject: [PATCH 1/5] leave the question section in update responses.
This fixes TSIG-GSS updates from windows7 and w2k8r2, which require
the question to be included in the initial refusal for the unsigned
update.
---
lib/dns/message.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/dns/message.c b/lib/dns/message.c
index b541635..ae4965f 100644
--- a/lib/dns/message.c
+++ b/lib/dns/message.c
@@ -2474,7 +2474,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)
--
1.6.3.3