summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/async_bind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/async_bind.c b/source4/torture/rpc/async_bind.c
index 14a2146e5e..960f099c9b 100644
--- a/source4/torture/rpc/async_bind.c
+++ b/source4/torture/rpc/async_bind.c
@@ -49,6 +49,11 @@ BOOL torture_async_bind(struct torture_context *torture)
struct dcerpc_pipe *pipe[ASYNC_COUNT];
struct dcerpc_interface_table *table[ASYNC_COUNT];
+ if (!lp_parm_bool(-1, "torture", "dangerous", False)) {
+ printf("async bind test disabled - enable dangerous tests to use\n");
+ return True;
+ }
+
binding_string = lp_parm_string(-1, "torture", "binding");
/* talloc context */