diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-04-12 02:50:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-04-12 02:50:43 +0000 |
commit | b5f599daf77a366d6dabbd41567d49ffdbb5959d (patch) | |
tree | 6ba96cd34e31f5b3f4612bbf3fa34ed5a746af08 /source3 | |
parent | 5f7e1d2aa5ad4c57074c9344f7a970e8bd783dda (diff) | |
download | samba-b5f599daf77a366d6dabbd41567d49ffdbb5959d.tar.gz samba-b5f599daf77a366d6dabbd41567d49ffdbb5959d.tar.bz2 samba-b5f599daf77a366d6dabbd41567d49ffdbb5959d.zip |
if the resolve order is blank then assume "host"
(This used to be commit d361a06fa14b899cf1bd697a9524b5a32f7bf204)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/namequery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index faa2a09007..8927522090 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -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")) { |