diff options
Diffstat (limited to 'source4/torture/basic/secleak.c')
-rw-r--r-- | source4/torture/basic/secleak.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source4/torture/basic/secleak.c b/source4/torture/basic/secleak.c index 78267b0295..b39c46b853 100644 --- a/source4/torture/basic/secleak.c +++ b/source4/torture/basic/secleak.c @@ -56,15 +56,10 @@ static BOOL try_failed_login(struct smbcli_state *cli) return True; } -BOOL torture_sec_leak(struct torture_context *torture) +BOOL torture_sec_leak(struct torture_context *tctx, struct smbcli_state *cli) { - struct smbcli_state *cli; time_t t1 = time(NULL); - int timelimit = lp_parm_int(-1, "torture", "timelimit", 20); - - if (!torture_open_connection(&cli, 0)) { - return False; - } + int timelimit = torture_setting_int(tctx, "timelimit", 20); while (time(NULL) < t1+timelimit) { if (!try_failed_login(cli)) { |