summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index 862dd80f39..9084c64655 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -812,6 +812,11 @@ BOOL torture_net_become_dc(struct torture_context *torture)
goto cleanup;
}
+ if (lp_parm_bool(-1, "become dc", "donnot leave", False)) {
+ talloc_free(s);
+ return ret;
+ }
+
cleanup:
ZERO_STRUCT(u);
u.in.domain_dns_name = torture_join_dom_dns_name(s->tj);