[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1302-g8e4cd87

Günther Deschner gd at samba.org
Tue Apr 28 10:49:43 GMT 2009


The branch, master has been updated
       via  8e4cd873e34ba5fd394438136798393ba1c04ed2 (commit)
      from  24cfe3e6071f1304fd993ddaa2e7ad3337b5fad2 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 8e4cd873e34ba5fd394438136798393ba1c04ed2
Author: Günther Deschner <gd at samba.org>
Date:   Tue Apr 28 12:02:22 2009 +0200

    s3-cldap: check for zero ip address in ads_cldap_netlogon().
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source3/libads/cldap.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c
index d941ba6..4c3716a 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) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list