summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-07-10 07:25:08 +0200
committerStefan Metzmacher <metze@samba.org>2014-08-26 09:13:06 +0200
commit3fcc4a545e936c2c0cf3f9f9a19646e1512f74d2 (patch)
treed49de00f8549fd631a6a65d28e85e04f62049815 /libcli
parent7f18a3b58e7146e421653b85f509bb8503bd7402 (diff)
downloadsamba-3fcc4a545e936c2c0cf3f9f9a19646e1512f74d2.tar.gz
libcli/dns: ignore NS entries in dns_hosts_file.c at a higher log level for now
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/dns/dns_hosts_file.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcli/dns/dns_hosts_file.c b/libcli/dns/dns_hosts_file.c
index 5be5fca3330..4b1bc531675 100644
--- a/libcli/dns/dns_hosts_file.c
+++ b/libcli/dns/dns_hosts_file.c
@@ -106,6 +106,9 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha
} else if (name_type && strcasecmp(name_type, "CNAME") == 0) {
if (next_token_talloc(ctx, &ptr, &next_name, NULL))
++count;
+ } else if (name_type && strcasecmp(name_type, "NS") == 0) {
+ if (next_token_talloc(ctx, &ptr, &next_name, NULL))
+ ++count;
}
if (count <= 0)
continue;
@@ -155,6 +158,15 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha
if (!*pp_next_name) {
return false;
}
+ } else if (strcasecmp(name_type, "NS") == 0) {
+ if (count != 3) {
+ DEBUG(0,("getdns_hosts_fileent: Ill formed hosts NS record [%s]\n",
+ line));
+ continue;
+ }
+ DEBUG(4, ("getdns_hosts_fileent: NS entry: %s %s %s\n",
+ name_type, name, next_name));
+ continue;
} else {
DEBUG(0,("getdns_hosts_fileent: unknown type %s\n", name_type));
continue;