git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
000b871
)
if the resolve order is blank then assume "host"
author
Andrew Tridgell
<tridge@samba.org>
Sun, 12 Apr 1998 02:50:43 +0000
(
02:50
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 12 Apr 1998 02:50:43 +0000
(
02:50
+0000)
source/libsmb/namequery.c
patch
|
blob
|
history
diff --git
a/source/libsmb/namequery.c
b/source/libsmb/namequery.c
index faa2a0900742941e460afc3f43552aebf9b0b678..892752209029a22a98158f6e34be84c59ef45a3c 100644
(file)
--- a/
source/libsmb/namequery.c
+++ b/
source/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")) {