summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-09-27 18:05:38 -0700
committerKai Blin <kai@samba.org>2011-11-04 15:51:59 +0100
commit57bf64b37569c93fecfbdd3e9fe0c4f0acfb679e (patch)
treea518b5f6971aee74609f0ac144735eefb3b0af7e /source4
parent61913f85062eb6425bc6eb0a3f2e10aadd075a36 (diff)
downloadsamba-57bf64b37569c93fecfbdd3e9fe0c4f0acfb679e.tar.gz
samba-57bf64b37569c93fecfbdd3e9fe0c4f0acfb679e.tar.bz2
samba-57bf64b37569c93fecfbdd3e9fe0c4f0acfb679e.zip
s4 dns: Handle QCLASS_NONE queries
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_query.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c
index 70677a54ce..b233b25a81 100644
--- a/source4/dns_server/dns_query.c
+++ b/source4/dns_server/dns_query.c
@@ -164,6 +164,11 @@ WERROR dns_server_process_query(struct dns_server *dns,
return DNS_ERR(FORMAT_ERROR);
}
+ /* Windows returns NOT_IMPLEMENTED on this as well */
+ if (in->questions[0].question_class == DNS_QCLASS_NONE) {
+ return DNS_ERR(NOT_IMPLEMENTED);
+ }
+
ans = talloc_array(mem_ctx, struct dns_res_rec, 0);
W_ERROR_HAVE_NO_MEMORY(ans);