mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
if the resolve order is blank then assume "host"
(This used to be commit d361a06fa1
)
This commit is contained in:
@ -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")) {
|
||||
|
||||
|
Reference in New Issue
Block a user