diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/raw/lockbench.c | 9 | ||||
-rw-r--r-- | source4/torture/raw/openbench.c | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index 2197ccc010..361f509c40 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -274,15 +274,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te, fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); - if (!state[i].tree) { - return; - } - /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ for (i=0;i<nprocs;i++) { struct smb_echo p; struct smbcli_request *req; + + if (!state[i].tree) { + continue; + } + p.in.repeat_count = 1; p.in.size = 0; p.in.data = NULL; diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c index b99259c618..5530e90fcf 100644 --- a/source4/torture/raw/openbench.c +++ b/source4/torture/raw/openbench.c @@ -314,15 +314,16 @@ static void report_rate(struct event_context *ev, struct timed_event *te, fflush(stdout); event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state); - if (!state[i].tree) { - return; - } - /* send an echo on each interface to ensure it stays alive - this helps with IP takeover */ for (i=0;i<nprocs;i++) { struct smb_echo p; struct smbcli_request *req; + + if (!state[i].tree) { + continue; + } + p.in.repeat_count = 1; p.in.size = 0; p.in.data = NULL; |