mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
dsdb: Use correct memory context for imessaging_client_init() in audit logging
This is only used for selftest, to send out the log messages for checking. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
4b077e07a0
commit
d38160c968
@ -1566,7 +1566,9 @@ static int log_init(struct ldb_module *module)
|
||||
if (sdb_events || pwd_events) {
|
||||
context->send_samdb_events = sdb_events;
|
||||
context->send_password_events = pwd_events;
|
||||
context->msg_ctx = imessaging_client_init(ec, lp_ctx, ec);
|
||||
context->msg_ctx = imessaging_client_init(context,
|
||||
lp_ctx,
|
||||
ec);
|
||||
}
|
||||
|
||||
ldb_module_set_private(module, context);
|
||||
|
@ -1341,7 +1341,9 @@ static int group_init(struct ldb_module *module)
|
||||
|
||||
if (lp_ctx && lpcfg_dsdb_group_change_notification(lp_ctx)) {
|
||||
context->send_events = true;
|
||||
context->msg_ctx = imessaging_client_init(ec, lp_ctx, ec);
|
||||
context->msg_ctx = imessaging_client_init(context,
|
||||
lp_ctx,
|
||||
ec);
|
||||
}
|
||||
|
||||
ldb_module_set_private(module, context);
|
||||
|
Loading…
Reference in New Issue
Block a user