mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
if the resolve order is blank then assume "host"
This commit is contained in:
parent
000b871839
commit
d361a06fa1
@ -451,6 +451,8 @@ BOOL resolve_name(char *name, struct in_addr *return_ip)
|
||||
|
||||
pstrcpy(name_resolve_list, lp_name_resolve_order());
|
||||
ptr = name_resolve_list;
|
||||
if (!ptr || !*ptr) ptr = "host";
|
||||
|
||||
while (next_token(&ptr, tok, LIST_SEP)) {
|
||||
if(strequal(tok, "host") || strequal(tok, "hosts")) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user