[SCM] Samba Shared Repository - branch master updated

Matthias Dieter Wallnöfer mdw at samba.org
Mon Feb 22 13:23:58 MST 2010


The branch, master has been updated
       via  6de98ba... s4:torture/ldap/basic.c - add some "const"
      from  73bfd9d... s4:netlogon enhance DsrEnumerateDomainTrusts

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


- Log -----------------------------------------------------------------
commit 6de98ba10bc9c66a068b0e37f0910a6b073f75c2
Author: Matthias Dieter Wallnöfer <mwallnoefer at yahoo.de>
Date:   Mon Feb 22 21:19:27 2010 +0100

    s4:torture/ldap/basic.c - add some "const"
    
    In addition I removed a "talloc_free(req)" since we never free elsewhere the
    requests explicitly and do it only indirectly with freeing the "conn" object
    when the testsuite terminates.

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

Summary of changes:
 source4/torture/ldap/basic.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/ldap/basic.c b/source4/torture/ldap/basic.c
index 87719f8..6498a68 100644
--- a/source4/torture/ldap/basic.c
+++ b/source4/torture/ldap/basic.c
@@ -78,7 +78,7 @@ static bool test_multibind(struct ldap_connection *conn, const char *userdn, con
 	return ret;
 }
 
-static bool test_search_rootDSE(struct ldap_connection *conn, char **basedn)
+static bool test_search_rootDSE(struct ldap_connection *conn, const char **basedn)
 {
 	bool ret = true;
 	struct ldap_message *msg, *result;
@@ -140,8 +140,6 @@ static bool test_search_rootDSE(struct ldap_connection *conn, char **basedn)
 		}
 	}
 
-	talloc_free(req);
-
 	return ret;
 }
 
@@ -361,8 +359,8 @@ bool torture_ldap_basic(struct torture_context *torture)
 	const char *host = torture_setting_string(torture, "host", NULL);
 	const char *userdn = torture_setting_string(torture, "ldap_userdn", NULL);
 	const char *secret = torture_setting_string(torture, "ldap_secret", NULL);
-	char *url;
-	char *basedn;
+	const char *url;
+	const char *basedn;
 
 	mem_ctx = talloc_init("torture_ldap_basic");
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list