git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ad53a
)
if an address is ipzero in cli_connect() then do a name query
author
Andrew Tridgell
<tridge@samba.org>
Mon, 31 Aug 1998 07:21:54 +0000
(07:21 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 31 Aug 1998 07:21:54 +0000
(07:21 +0000)
(This used to be commit
0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32
)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 117d065f76925c408496dde9f034ae4b8f43b42f..52919d9eb41468b04934e6ff9de8e03086346ffc 100644
(file)
--- a/
source3/libsmb/clientgen.c
+++ b/
source3/libsmb/clientgen.c
@@
-1665,10
+1665,11
@@
open the client sockets
BOOL cli_connect(struct cli_state *cli, char *host, struct in_addr *ip)
{
struct in_addr dest_ip;
+ extern struct in_addr ipzero;
fstrcpy(cli->desthost, host);
- if (!ip) {
+ if (!ip
|| ip_equal(*ip, ipzero)
) {
if(!resolve_name( cli->desthost, &dest_ip)) {
return False;
}