1
0
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:
Andrew Tridgell
1998-04-12 02:50:43 +00:00
parent 5f7e1d2aa5
commit b5f599daf7

View File

@ -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")) {