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:
75621d5
)
handle a NULL hostname in cli_connect()
author
Andrew Tridgell
<tridge@samba.org>
Tue, 11 Dec 2001 05:48:27 +0000
(
05:48
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 11 Dec 2001 05:48:27 +0000
(
05:48
+0000)
source/libsmb/cliconnect.c
patch
|
blob
|
history
diff --git
a/source/libsmb/cliconnect.c
b/source/libsmb/cliconnect.c
index 27034b012d3de710cadb5eab6aaa56f2669ddfb7..fc50e8e02fe07445d70e7a7bf5bb09afbdb601b2 100644
(file)
--- a/
source/libsmb/cliconnect.c
+++ b/
source/libsmb/cliconnect.c
@@
-978,6
+978,9
@@
BOOL cli_connect(struct cli_state *cli, const char *host, struct in_addr *ip)
int name_type = 0x20;
char *p;
+ /* reasonable default hostname */
+ if (!host) host = "*SMBSERVER";
+
fstrcpy(cli->desthost, host);
/* allow hostnames of the form NAME#xx and do a netbios lookup */