s4 dns: More explicitly use the first question of an update packet only
authorKai Blin <kai@samba.org>
Thu, 8 Dec 2011 23:59:34 +0000 (00:59 +0100)
committerKai Blin <kai@samba.org>
Fri, 9 Dec 2011 00:59:28 +0000 (01:59 +0100)
source4/dns_server/dns_update.c

index 1f968ecff59c29cd330e948f452c92f2d979525a..a8c49998f79ce9aa25828144441a4e723975e6a1 100644 (file)
@@ -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);