summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/smbtorture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 759be4cae9..984d6ed27a 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -281,8 +281,6 @@ const static struct torture_ui_ops std_ui_ops = {
setbuffer(stdout, NULL, 0);
#endif
- torture_init();
-
/* we are never interested in SIGPIPE */
BlockSignals(True,SIGPIPE);
@@ -314,6 +312,7 @@ const static struct torture_ui_ops std_ui_ops = {
default:
d_printf("Invalid option %s: %s\n",
poptBadOption(pc, 0), poptStrerror(opt));
+ torture_init();
usage(pc);
exit(1);
}
@@ -329,6 +328,7 @@ const static struct torture_ui_ops std_ui_ops = {
alarm(max_runtime);
}
+ torture_init();
ldb_global_init();
if (torture_seed == 0) {