From: Andrew Tridgell Date: Mon, 31 Aug 1998 07:21:54 +0000 (+0000) Subject: if an address is ipzero in cli_connect() then do a name query X-Git-Tag: samba-2.0.0alpha2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a5718b0aef29706be81a50f2ac2c5eb4c6fbb32;p=thirdparty%2Fsamba.git if an address is ipzero in cli_connect() then do a name query --- 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; }