mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s4/torture: use time_mono for timeouts
This commit is contained in:
parent
478ac36b9c
commit
54ca77183b
@ -62,10 +62,10 @@ static bool try_failed_login(struct torture_context *tctx, struct smbcli_state *
|
||||
|
||||
bool torture_sec_leak(struct torture_context *tctx, struct smbcli_state *cli)
|
||||
{
|
||||
time_t t1 = time(NULL);
|
||||
time_t t1 = time_mono(NULL);
|
||||
int timelimit = torture_setting_int(tctx, "timelimit", 20);
|
||||
|
||||
while (time(NULL) < t1+timelimit) {
|
||||
while (time_mono(NULL) < t1+timelimit) {
|
||||
if (!try_failed_login(tctx, cli)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user