diff options
-rw-r--r-- | source4/torture/torture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 52349904a5..bd27cf1081 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -41,6 +41,10 @@ NTSTATUS torture_register_suite(struct torture_suite *suite) { struct torture_suite_list *p, *n; + if (!suite) { + return NT_STATUS_OK; + } + n = talloc(talloc_autofree_context(), struct torture_suite_list); n->suite = suite; |