summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-25 11:39:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:55 -0500
commitd79225c94a8322dd89cb8e4adb3619165920a4c6 (patch)
treeeaa54e069bdf790788c94bc4612acb6d30a1263a /source4
parent18a4d22880a31dbf39076f77d2d898fa078b139e (diff)
downloadsamba-d79225c94a8322dd89cb8e4adb3619165920a4c6.tar.gz
samba-d79225c94a8322dd89cb8e4adb3619165920a4c6.tar.bz2
samba-d79225c94a8322dd89cb8e4adb3619165920a4c6.zip
r23140: send send echos while disconnected
(This used to be commit 233172a9f71e297e255c393946ad51fad96b356e)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/lockbench.c4
-rw-r--r--source4/torture/raw/openbench.c4
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);
+ }
}
}