mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s3-cldap: check for zero ip address in ads_cldap_netlogon().
Guenther
This commit is contained in:
parent
24cfe3e607
commit
8e4cd873e3
@ -44,7 +44,14 @@ bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx,
|
||||
int ret;
|
||||
struct tsocket_address *dest_addr;
|
||||
|
||||
/* TODO: support ipv6 */
|
||||
|
||||
addr = interpret_addr2(server);
|
||||
if (is_zero_ip_v4(addr)) {
|
||||
DEBUG(2,("Failed to resolve[%s] into an address for cldap\n",
|
||||
server));
|
||||
return false;
|
||||
}
|
||||
dest_str = inet_ntop(AF_INET, &addr,
|
||||
addrstr, sizeof(addrstr));
|
||||
if (!dest_str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user