diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-31 07:21:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-31 07:21:54 +0000 |
commit | 0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32 (patch) | |
tree | 6acb99557f1e3e5278364cf480e45a4987608420 /source/libsmb/clientgen.c | |
parent | 685f4ef2e1f83ab39e91229cf53a61eecb6181eb (diff) | |
download | samba-0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32.tar.gz samba-0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32.tar.xz samba-0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32.zip |
if an address is ipzero in cli_connect() then do a name query
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r-- | source/libsmb/clientgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 117d065f769..52919d9eb41 100644 --- a/source/libsmb/clientgen.c +++ b/source/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; } |