summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-31 07:21:54 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-31 07:21:54 +0000
commit9076947b935fbeb13babf42974ff527ef916aabb (patch)
treefdb718c792dd428cae4f4cb212763ff17b7ca803 /source3/libsmb/clientgen.c
parentf8ad53aa037b362b37592ca04b160cb81ccdecc8 (diff)
downloadsamba-9076947b935fbeb13babf42974ff527ef916aabb.tar.gz
samba-9076947b935fbeb13babf42974ff527ef916aabb.tar.bz2
samba-9076947b935fbeb13babf42974ff527ef916aabb.zip
if an address is ipzero in cli_connect() then do a name query
(This used to be commit 0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 117d065f76..52919d9eb4 100644
--- 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;
}