mirror of
https://github.com/samba-team/samba.git
synced 2025-08-31 22:02:58 +03:00
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>
This commit is contained in:
@ -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) {
|
} else if (name_type && strcasecmp(name_type, "CNAME") == 0) {
|
||||||
if (next_token_talloc(ctx, &ptr, &next_name, NULL))
|
if (next_token_talloc(ctx, &ptr, &next_name, NULL))
|
||||||
++count;
|
++count;
|
||||||
|
} else if (name_type && strcasecmp(name_type, "NS") == 0) {
|
||||||
|
if (next_token_talloc(ctx, &ptr, &next_name, NULL))
|
||||||
|
++count;
|
||||||
}
|
}
|
||||||
if (count <= 0)
|
if (count <= 0)
|
||||||
continue;
|
continue;
|
||||||
@ -155,6 +158,15 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha
|
|||||||
if (!*pp_next_name) {
|
if (!*pp_next_name) {
|
||||||
return false;
|
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 {
|
} else {
|
||||||
DEBUG(0,("getdns_hosts_fileent: unknown type %s\n", name_type));
|
DEBUG(0,("getdns_hosts_fileent: unknown type %s\n", name_type));
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user