summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-28 12:02:22 +0200
committerGünther Deschner <gd@samba.org>2009-04-28 12:49:17 +0200
commit8e4cd873e34ba5fd394438136798393ba1c04ed2 (patch)
treeceea402f17b6fee28005ff5cce3f9b3832b01af3 /source3/libads
parent24cfe3e6071f1304fd993ddaa2e7ad3337b5fad2 (diff)
downloadsamba-8e4cd873e34ba5fd394438136798393ba1c04ed2.tar.gz
samba-8e4cd873e34ba5fd394438136798393ba1c04ed2.tar.bz2
samba-8e4cd873e34ba5fd394438136798393ba1c04ed2.zip
s3-cldap: check for zero ip address in ads_cldap_netlogon().
Guenther
Diffstat (limited to 'source3/libads')
-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) {