summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
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;
}