diff options
author | Kai Blin <kai@samba.org> | 2011-09-27 18:05:38 -0700 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2011-11-04 15:51:59 +0100 |
commit | 57bf64b37569c93fecfbdd3e9fe0c4f0acfb679e (patch) | |
tree | a518b5f6971aee74609f0ac144735eefb3b0af7e /source4 | |
parent | 61913f85062eb6425bc6eb0a3f2e10aadd075a36 (diff) | |
download | samba-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.c | 5 |
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); |