summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/cldap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c
index d941ba60cd..4c3716a470 100644
--- a/source3/libads/cldap.c
+++ b/source3/libads/cldap.c
@@ -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) {