diff options
| author | Volker Lendecke <vl@samba.org> | 2014-07-17 11:33:26 +0000 |
|---|---|---|
| committer | Jeremy Allison <jra@samba.org> | 2014-08-11 23:57:12 +0200 |
| commit | 7c6a6cd5c8d4e561cb11bf37267295abaf9ed9d6 (patch) | |
| tree | 7726c7583358a10f4f7719a9dc0f088a253361e4 /source3 | |
| parent | 3aa3c6ed012dd344cbc91ac49870c6adc4c3d891 (diff) | |
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>
Diffstat (limited to 'source3')
| -rw-r--r-- | source3/lib/messages.c | 2 | ||||
| -rw-r--r-- | source3/lib/messages_dgm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 18376bbe53..a7d5fbc0a7 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -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); diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c index 69d8677fbc..e5da28552e 100644 --- a/source3/lib/messages_dgm.c +++ b/source3/lib/messages_dgm.c @@ -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) { |
