summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-02-02 15:07:35 +0100
committerJeremy Allison <jra@samba.org>2021-03-16 17:09:32 +0000
commit9614273aa3d0d7c7113d25b2204ebb292405c7a8 (patch)
tree8cfef0c015f6fda8aaea61a6c4b263feffedb298 /testsuite
parentc8f47dfc03de58525a49824725a3c367d393433b (diff)
downloadsamba-9614273aa3d0d7c7113d25b2204ebb292405c7a8.tar.gz
librpc: Make "dcesrv_context->callbacks" a pointer
This structure just grew from 3 to 6 pointers, avoid making a copy of this. All callers of dcesrv_init_context() have this as a static struct in the C object, so a pointer to that won't change. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
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");