1
0
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:
Günther Deschner 2009-04-28 12:02:22 +02:00
parent 24cfe3e607
commit 8e4cd873e3

View File

@ -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) {