diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-15 15:14:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:07 -0500 |
commit | 84758bd1f8633d3efe30e293887596db6bfd5e5b (patch) | |
tree | a7b952b9aa3820a51cc085090364cb066c72c927 /source3/lib/messages.c | |
parent | b759f7c09aebd56711888a75e7902d845c12b2e2 (diff) | |
download | samba-84758bd1f8633d3efe30e293887596db6bfd5e5b.tar.gz samba-84758bd1f8633d3efe30e293887596db6bfd5e5b.tar.xz samba-84758bd1f8633d3efe30e293887596db6bfd5e5b.zip |
r22908: All callers of message_init now also call messaging_init. Unify those.
(This used to be commit 330946ad2307ca34f0a8d068a0193fcb8a0d6036)
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 16d3a61343f..63c136db61c 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -117,7 +117,7 @@ static void ping_message(int msg_type, struct server_id src, Initialise the messaging functions. ****************************************************************************/ -BOOL message_init(void) +static BOOL message_init(struct messaging_context *msg_ctx) { sec_init(); @@ -144,6 +144,7 @@ BOOL message_init(void) register_msg_pool_usage(); register_dmalloc_msgs(); + debug_register_msgs(); return True; } @@ -757,6 +758,12 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, ctx->id = server_id; talloc_set_destructor(ctx, messaging_context_destructor); + + if (!message_init(ctx)) { + DEBUG(0, ("message_init failed: %s\n", strerror(errno))); + TALLOC_FREE(ctx); + } + return ctx; } |