From ae386415b6fd15081f3b94faec917dafdeee1f93 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 19 May 2009 23:07:36 +0200 Subject: Make local-wbclient flexible in # of connections and ops --- source3/torture/torture.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index fa1a22228a..2c68ee609a 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -5809,7 +5809,7 @@ static bool run_local_wbclient(int dummy) goto fail; } - wb_ctx = TALLOC_ARRAY(ev, struct wb_context *, torture_numops); + wb_ctx = TALLOC_ARRAY(ev, struct wb_context *, nprocs); if (wb_ctx == NULL) { goto fail; } @@ -5817,12 +5817,14 @@ static bool run_local_wbclient(int dummy) ZERO_STRUCT(wb_req); wb_req.cmd = WINBINDD_PING; - for (i=0; i