s4 dns: Handle QCLASS_NONE queries
authorKai Blin <kai@samba.org>
Wed, 28 Sep 2011 01:05:38 +0000 (18:05 -0700)
committerKai Blin <kai@samba.org>
Fri, 4 Nov 2011 14:51:59 +0000 (15:51 +0100)
source4/dns_server/dns_query.c

index 70677a54ce6f3a6b1dc7f4a2b0037f1a1047ed9c..b233b25a8129a6cda16e0d7fca956a13925773cc 100644 (file)
@@ -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);