mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
dns_server: Fix typo in dns_authoritative_for_zone() name.
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f67a3c2eb9
commit
9394e14626
@ -507,7 +507,7 @@ static struct tevent_req *handle_dnsrpcrec_send(
|
|||||||
.name = rec->data.cname
|
.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(
|
subreq = handle_authoritative_send(
|
||||||
state, ev, dns, forwarder, new_q,
|
state, ev, dns, forwarder, new_q,
|
||||||
state->answers, state->nsrecs);
|
state->answers, state->nsrecs);
|
||||||
@ -984,7 +984,7 @@ struct tevent_req *dns_server_process_query_send(
|
|||||||
DLIST_ADD_END(state->forwarders, f);
|
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;
|
req_state->flags |= DNS_FLAG_AUTHORITATIVE;
|
||||||
|
|
||||||
|
@ -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_name_equal(const char *name1, const char *name2);
|
||||||
bool dns_records_match(struct dnsp_DnssrvRpcRecord *rec1,
|
bool dns_records_match(struct dnsp_DnssrvRpcRecord *rec1,
|
||||||
struct dnsp_DnssrvRpcRecord *rec2);
|
struct dnsp_DnssrvRpcRecord *rec2);
|
||||||
bool dns_authorative_for_zone(struct dns_server *dns,
|
bool dns_authoritative_for_zone(struct dns_server *dns,
|
||||||
const char *name);
|
const char *name);
|
||||||
const char *dns_get_authoritative_zone(struct dns_server *dns,
|
const char *dns_get_authoritative_zone(struct dns_server *dns,
|
||||||
const char *name);
|
const char *name);
|
||||||
WERROR dns_lookup_records(struct dns_server *dns,
|
WERROR dns_lookup_records(struct dns_server *dns,
|
||||||
|
@ -130,8 +130,8 @@ WERROR dns_replace_records(struct dns_server *dns,
|
|||||||
needs_add, dwSerial, records, rec_count);
|
needs_add, dwSerial, records, rec_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dns_authorative_for_zone(struct dns_server *dns,
|
bool dns_authoritative_for_zone(struct dns_server *dns,
|
||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
const struct dns_server_zone *z;
|
const struct dns_server_zone *z;
|
||||||
size_t host_part_len = 0;
|
size_t host_part_len = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user