From d79225c94a8322dd89cb8e4adb3619165920a4c6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 May 2007 11:39:43 +0000 Subject: r23140: send send echos while disconnected (This used to be commit 233172a9f71e297e255c393946ad51fad96b356e) --- source4/torture/raw/lockbench.c | 4 +++- source4/torture/raw/openbench.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source4/torture/raw/lockbench.c b/source4/torture/raw/lockbench.c index 7ec8844cdc..901b7dee7e 100644 --- a/source4/torture/raw/lockbench.c +++ b/source4/torture/raw/lockbench.c @@ -265,7 +265,9 @@ static void report_rate(struct event_context *ev, struct timed_event *te, p.in.repeat_count = 0; p.in.size = 0; p.in.data = NULL; - smb_raw_echo_send(state[i].tree->session->transport, &p); + if (state[i].tree) { + smb_raw_echo_send(state[i].tree->session->transport, &p); + } } } diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c index 537f67ea3a..4ca7781754 100644 --- a/source4/torture/raw/openbench.c +++ b/source4/torture/raw/openbench.c @@ -305,7 +305,9 @@ static void report_rate(struct event_context *ev, struct timed_event *te, p.in.repeat_count = 0; p.in.size = 0; p.in.data = NULL; - smb_raw_echo_send(state[i].tree->session->transport, &p); + if (state[i].tree) { + smb_raw_echo_send(state[i].tree->session->transport, &p); + } } } -- cgit