summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/unittests/test_sambafs_srv_pipe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuite/unittests/test_sambafs_srv_pipe.c b/testsuite/unittests/test_sambafs_srv_pipe.c
index 40798b588c7..75797c9bcee 100644
--- a/testsuite/unittests/test_sambafs_srv_pipe.c
+++ b/testsuite/unittests/test_sambafs_srv_pipe.c
@@ -21,6 +21,10 @@ struct test_state {
struct dcesrv_context *dce_ctx;
};
+static struct dcesrv_context_callbacks srv_callbacks = {
+ .log.successful_authz = NULL,
+};
+
static int setup_samr(void **state)
{
TALLOC_CTX *mem_ctx;
@@ -42,7 +46,7 @@ static int setup_samr(void **state)
status = dcerpc_register_ep_server(ep_server);
assert_true(NT_STATUS_IS_OK(status));
- status = dcesrv_init_context(s, NULL, NULL, &s->dce_ctx);
+ status = dcesrv_init_context(s, NULL, &srv_callbacks, &s->dce_ctx);
assert_true(NT_STATUS_IS_OK(status));
status = dcesrv_init_ep_server(s->dce_ctx, "samr");