summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-29 08:30:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:01 -0500
commit95a3ca53e57548501c0b66919c2b952121541e83 (patch)
treebab0e00a45e4a147a94d7cc2448d58caa1dec2c5
parentaeac4f48001bbca61b9f94ecb1bdfa336ff27ad7 (diff)
downloadsamba-95a3ca53e57548501c0b66919c2b952121541e83.tar.gz
samba-95a3ca53e57548501c0b66919c2b952121541e83.tar.bz2
samba-95a3ca53e57548501c0b66919c2b952121541e83.zip
r23182: fixed valgrind error
(This used to be commit fae416cbe8e44bc88ea709160a583e2f921e4eec)
-rw-r--r--source4/torture/raw/lockbench.c2
-rw-r--r--source4/torture/raw/openbench.c2
2 files changed, 4 insertions, 0 deletions
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);