dns_server: Fix typo in dns_authoritative_for_zone() name.
authorGarming Sam <garming@catalyst.net.nz>
Mon, 30 May 2016 22:48:15 +0000 (10:48 +1200)
committerGarming Sam <garming@samba.org>
Thu, 16 Jun 2016 02:40:14 +0000 (04:40 +0200)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dns_server/dns_query.c
source4/dns_server/dns_server.h
source4/dns_server/dns_utils.c

index 146054bf4deab3b8af26aa472f52136d32d17f96..3e9359ee6661fcb922d99a314a4bfb77bb0bf8d3 100644 (file)
@@ -507,7 +507,7 @@ static struct tevent_req *handle_dnsrpcrec_send(
                .name = rec->data.cname
        };
 
-       if (dns_authorative_for_zone(dns, new_q->name)) {
+       if (dns_authoritative_for_zone(dns, new_q->name)) {
                subreq = handle_authoritative_send(
                        state, ev, dns, forwarder, new_q,
                        state->answers, state->nsrecs);
@@ -984,7 +984,7 @@ struct tevent_req *dns_server_process_query_send(
                DLIST_ADD_END(state->forwarders, f);
        }
 
-       if (dns_authorative_for_zone(dns, in->questions[0].name)) {
+       if (dns_authoritative_for_zone(dns, in->questions[0].name)) {
 
                req_state->flags |= DNS_FLAG_AUTHORITATIVE;
 
index e5c15ec1532287b38221db87a3d591743590b3b8..e623f97231618213e9eba84b32f275d2342d3726 100644 (file)
@@ -84,8 +84,8 @@ WERROR dns_server_process_update(struct dns_server *dns,
 bool dns_name_equal(const char *name1, const char *name2);
 bool dns_records_match(struct dnsp_DnssrvRpcRecord *rec1,
                       struct dnsp_DnssrvRpcRecord *rec2);
-bool dns_authorative_for_zone(struct dns_server *dns,
-                             const char *name);
+bool dns_authoritative_for_zone(struct dns_server *dns,
+                               const char *name);
 const char *dns_get_authoritative_zone(struct dns_server *dns,
                                       const char *name);
 WERROR dns_lookup_records(struct dns_server *dns,
index ce450b56c645ba5489f9ac8fa1dc715e32aad5e0..8107364b12af939245a0f576c194b7e4ea853ab5 100644 (file)
@@ -130,8 +130,8 @@ WERROR dns_replace_records(struct dns_server *dns,
                                  needs_add, dwSerial, records, rec_count);
 }
 
-bool dns_authorative_for_zone(struct dns_server *dns,
-                             const char *name)
+bool dns_authoritative_for_zone(struct dns_server *dns,
+                               const char *name)
 {
        const struct dns_server_zone *z;
        size_t host_part_len = 0;