svn commit: samba r8781 - in
branches/SAMBA_4_0/source/torture/basic: .
tridge at samba.org
tridge at samba.org
Tue Jul 26 12:41:29 GMT 2005
Author: tridge
Date: 2005-07-26 12:41:29 +0000 (Tue, 26 Jul 2005)
New Revision: 8781
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8781
Log:
- fixed a memory leak in BASE-SECLEAK (ironic, isn't it). There is
another leak in the ASN.1 code that andrew has volunteered to look at
- make the timelimit controllable with -t
Modified:
branches/SAMBA_4_0/source/torture/basic/secleak.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/basic/secleak.c
===================================================================
--- branches/SAMBA_4_0/source/torture/basic/secleak.c 2005-07-26 12:40:26 UTC (rev 8780)
+++ branches/SAMBA_4_0/source/torture/basic/secleak.c 2005-07-26 12:41:29 UTC (rev 8781)
@@ -36,7 +36,7 @@
setup.in.capabilities = cli->transport->negotiate.capabilities;
setup.in.workgroup = lp_workgroup();
- setup.in.credentials = cli_credentials_init(NULL);
+ setup.in.credentials = cli_credentials_init(session);
cli_credentials_set_conf(setup.in.credentials);
cli_credentials_set_domain(setup.in.credentials, "INVALID-DOMAIN", CRED_SPECIFIED);
cli_credentials_set_username(setup.in.credentials, "INVALID-USERNAME", CRED_SPECIFIED);
@@ -56,15 +56,17 @@
{
struct smbcli_state *cli;
time_t t1 = time(NULL);
+ int timelimit = lp_parm_int(-1, "torture", "timelimit", 20);
if (!torture_open_connection(&cli)) {
return False;
}
- while (time(NULL) < t1+20) {
+ while (time(NULL) < t1+timelimit) {
if (!try_failed_login(cli)) {
return False;
}
+ talloc_report(NULL, stdout);
}
return True;
More information about the samba-cvs
mailing list