mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
if an address is ipzero in cli_connect() then do a name query
This commit is contained in:
parent
685f4ef2e1
commit
0a5718b0ae
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user