summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-12-09 01:26:39 +0100
committerKai Blin <kai@samba.org>2011-12-09 03:32:28 +0100
commitc01efc1207b097517623d71b2ed9a24bb9c255de (patch)
tree6c0c0639f071184eb6b005e936380b039e8f5a25 /source4/dns_server
parent358a81eff5279a69270964226b553fb5243ecb84 (diff)
downloadsamba-c01efc1207b097517623d71b2ed9a24bb9c255de.tar.gz
samba-c01efc1207b097517623d71b2ed9a24bb9c255de.tar.bz2
samba-c01efc1207b097517623d71b2ed9a24bb9c255de.zip
s4 dns: Update requests with QCLASS != IN or ALL trigger NOTIMPLEMENTED errors
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Dec 9 03:32:28 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dns_update.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index a8c49998f7..55589d227a 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -142,6 +142,11 @@ WERROR dns_server_process_update(struct dns_server *dns,
zone = &in->questions[0];
+ if (zone->question_class != DNS_QCLASS_IN &&
+ zone->question_class != DNS_QCLASS_ANY) {
+ return DNS_ERR(NOT_IMPLEMENTED);
+ }
+
if (zone->question_type != DNS_QTYPE_SOA) {
return DNS_ERR(FORMAT_ERROR);
}