summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/testjoin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index 2c2eca74e7..86cff44084 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -416,6 +416,9 @@ void torture_leave_domain(struct test_join *join)
struct samr_DeleteUser d;
NTSTATUS status;
+ if (!join) {
+ return;
+ }
d.in.user_handle = &join->user_handle;
d.out.user_handle = &join->user_handle;