summaryrefslogtreecommitdiff
path: root/lib/torture/torture.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/torture/torture.c')
-rw-r--r--lib/torture/torture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/torture/torture.c b/lib/torture/torture.c
index 1f55cd04a8..a12ce657ba 100644
--- a/lib/torture/torture.c
+++ b/lib/torture/torture.c
@@ -143,7 +143,9 @@ static int local_deltree(const char *path)
_PUBLIC_ NTSTATUS torture_deltree_outputdir(struct torture_context *tctx)
{
- SMB_ASSERT(tctx->outputdir != NULL);
+ if (tctx->outputdir == NULL) {
+ return NT_STATUS_OK;
+ }
if ((strcmp(tctx->outputdir, "/") == 0)
|| (strcmp(tctx->outputdir, "") == 0)) {
return NT_STATUS_INVALID_PARAMETER;