From d142f4b0f28edf10b9a0f1653d2fcbf31c45b296 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 May 2007 12:35:03 +0000 Subject: r23143: error found by valgrind (This used to be commit 268a26131ee43a673e7b79a359b2575dcef554d5) --- source4/torture/raw/lockbench.c | 9 +++++---- source4/torture/raw/openbench.c | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'source4') 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