summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/raw')
-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);
+ }
}
}