From 95a3ca53e57548501c0b66919c2b952121541e83 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 29 May 2007 08:30:41 +0000 Subject: r23182: fixed valgrind error (This used to be commit fae416cbe8e44bc88ea709160a583e2f921e4eec) --- source4/torture/raw/lockbench.c | 2 ++ source4/torture/raw/openbench.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index af0c65b6a4..5e132a24cc 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -176,6 +176,8 @@ static void reopen_connection(struct event_context *ev, struct timed_event *te, struct smb_composite_connect *io = &state->reconnect; char *host, *share; + state->te = NULL; + if (!torture_get_conn_index(state->client_num, state->mem_ctx, &host, &share)) { DEBUG(0,("Can't find host/share for reconnect?!\n")); exit(1); diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c index f956d84234..0a4a71e73f 100644 --- a/source4/torture/raw/openbench.c +++ b/source4/torture/raw/openbench.c @@ -114,6 +114,8 @@ static void reopen_connection(struct event_context *ev, struct timed_event *te, struct smb_composite_connect *io = &state->reconnect; char *host, *share; + state->te = NULL; + if (!torture_get_conn_index(state->client_num, state->mem_ctx, &host, &share)) { DEBUG(0,("Can't find host/share for reconnect?!\n")); exit(1); -- cgit