From 046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 Oct 2010 11:24:15 +1100 Subject: s4-smbd: don't initialise process models more than once this also removes the event_context parameter from process model initialisation. It isn't needed, and is confusing when a process model init can be called from more than one place, possibly with different event contexts. Pair-Programmed-With: Andrew Bartlett --- source4/torture/rpc/spoolss_notify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/rpc/spoolss_notify.c') diff --git a/source4/torture/rpc/spoolss_notify.c b/source4/torture/rpc/spoolss_notify.c index 8e23637442..4608f1f09d 100644 --- a/source4/torture/rpc/spoolss_notify.c +++ b/source4/torture/rpc/spoolss_notify.c @@ -460,7 +460,7 @@ static bool test_start_dcerpc_server(struct torture_context *tctx, torture_comment(tctx, "Listening for callbacks on %s\n", address); - status = smbsrv_add_socket(event_ctx, tctx->lp_ctx, &single_ops, address); + status = smbsrv_add_socket(event_ctx, tctx->lp_ctx, process_model_startup("single"), address); torture_assert_ntstatus_ok(tctx, status, "starting smb server"); status = dcesrv_init_context(tctx, tctx->lp_ctx, endpoints, &dce_ctx); @@ -469,7 +469,7 @@ static bool test_start_dcerpc_server(struct torture_context *tctx, for (e=dce_ctx->endpoint_list;e;e=e->next) { status = dcesrv_add_ep(dce_ctx, tctx->lp_ctx, - e, tctx->ev, &single_ops); + e, tctx->ev, process_model_startup("single")); torture_assert_ntstatus_ok(tctx, status, "unable listen on dcerpc endpoint server"); } -- cgit