summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-06-04 19:45:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:07 -0500
commitf96193a2cb18c86f625532f8824dde01ed193ce7 (patch)
treeb050cfe00ee433bc76aab90ac50dc9380d3a8e27
parent227ba79af9a65f21c7254c51196fe21e029931b4 (diff)
downloadsamba-f96193a2cb18c86f625532f8824dde01ed193ce7.tar.gz
samba-f96193a2cb18c86f625532f8824dde01ed193ce7.tar.bz2
samba-f96193a2cb18c86f625532f8824dde01ed193ce7.zip
r23343: Fix error return
(This used to be commit 0014ee44b87a4a109c897ffec5f9c38eea442571)
-rw-r--r--source3/lib/messages.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 256d4d097c..b796e1472c 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -199,8 +199,10 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
status = messaging_tdb_init(ctx, ctx, &ctx->local);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(0, ("messaging_tdb_init failed: %s\n", nt_errstr(status)));
+ DEBUG(0, ("messaging_tdb_init failed: %s\n",
+ nt_errstr(status)));
TALLOC_FREE(ctx);
+ return NULL;
}
messaging_register(ctx, NULL, MSG_PING, ping_message);