summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-12-09 00:59:34 +0100
committerKai Blin <kai@samba.org>2011-12-09 01:59:28 +0100
commit509acc71dd8534539021b0ec57dd83a841119793 (patch)
treee1f01bdecd9ac035c983110dc9b0f18ef2172d48 /source4/dns_server
parent3fbb76c119eaa1becb2df72d54cd4685771628df (diff)
downloadsamba-509acc71dd8534539021b0ec57dd83a841119793.tar.gz
samba-509acc71dd8534539021b0ec57dd83a841119793.tar.bz2
samba-509acc71dd8534539021b0ec57dd83a841119793.zip
s4 dns: More explicitly use the first question of an update packet only
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dns_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c
index 1f968ecff5..a8c49998f7 100644
--- a/source4/dns_server/dns_update.c
+++ b/source4/dns_server/dns_update.c
@@ -140,7 +140,7 @@ WERROR dns_server_process_update(struct dns_server *dns,
return DNS_ERR(FORMAT_ERROR);
}
- zone = in->questions;
+ zone = &in->questions[0];
if (zone->question_type != DNS_QTYPE_SOA) {
return DNS_ERR(FORMAT_ERROR);