summaryrefslogtreecommitdiff
path: root/source4/dns_server/dns_query.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-03-27 13:59:03 +0200
committerKai Blin <kai@samba.org>2012-03-27 16:03:16 +0200
commit533b2e6612bd6497c1d53c31912bccba0260a3e9 (patch)
tree8fdc21d8954c033788e2d92abf77bee11acdb48f /source4/dns_server/dns_query.c
parent8d9da67185aac48d7d0bc1e7b90262ae9afc6a64 (diff)
downloadsamba-533b2e6612bd6497c1d53c31912bccba0260a3e9.tar.gz
samba-533b2e6612bd6497c1d53c31912bccba0260a3e9.tar.bz2
samba-533b2e6612bd6497c1d53c31912bccba0260a3e9.zip
s4 dns: Allow changing the dns operation flags in handlers
Diffstat (limited to 'source4/dns_server/dns_query.c')
-rw-r--r--source4/dns_server/dns_query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c
index 9d287bd3a4..e1deff4938 100644
--- a/source4/dns_server/dns_query.c
+++ b/source4/dns_server/dns_query.c
@@ -207,6 +207,7 @@ static WERROR handle_question(struct dns_server *dns,
}
WERROR dns_server_process_query(struct dns_server *dns,
+ struct dns_request_state *state,
TALLOC_CTX *mem_ctx,
struct dns_name_packet *in,
struct dns_res_rec **answers, uint16_t *ancount,
@@ -227,6 +228,7 @@ WERROR dns_server_process_query(struct dns_server *dns,
}
if (dns_authorative_for_zone(dns, in->questions[0].name)) {
+ state->flags |= DNS_FLAG_AUTHORITATIVE;
werror = handle_question(dns, mem_ctx, &in->questions[0], &ans, &num_answers);
} else {
DEBUG(2, ("I don't feel responsible for '%s', forwarding\n", in->questions[0].name));