mirror of
https://github.com/samba-team/samba.git
synced 2025-03-23 06:50:21 +03:00
messaging3: Move sec_init() call out of messaging_dgm_init()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3aa3c6ed01
commit
7c6a6cd5c8
@ -245,6 +245,8 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
|
||||
ctx->event_ctx = ev;
|
||||
ctx->have_context = &have_context;
|
||||
|
||||
sec_init();
|
||||
|
||||
ret = messaging_dgm_init(ctx, ctx->event_ctx, ctx->id,
|
||||
messaging_recv_cb, ctx, &ctx->local);
|
||||
|
||||
|
@ -219,8 +219,6 @@ int messaging_dgm_init(TALLOC_CTX *mem_ctx,
|
||||
return ENAMETOOLONG;
|
||||
}
|
||||
|
||||
sec_init();
|
||||
|
||||
ret = messaging_dgm_lockfile_create(ctx, cache_dir, pid.pid,
|
||||
&ctx->lockfile_fd, pid.unique_id);
|
||||
if (ret != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user