messaging3: Move sec_init() call out of messaging_dgm_init()
authorVolker Lendecke <vl@samba.org>
Thu, 17 Jul 2014 11:33:26 +0000 (11:33 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 11 Aug 2014 21:57:12 +0000 (23:57 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/messages.c
source3/lib/messages_dgm.c

index 18376bbe533e1a1fb26d22869b93f01e6bf0da6b..a7d5fbc0a7ec1b7d8928c21e8b223d863d8aaeee 100644 (file)
@@ -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);
 
index 69d8677fbc8b8e1a500f065fa4ec320279be0711..e5da28552e38643dd5d3910a449fb1bc52750084 100644 (file)
@@ -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) {