r23343: Fix error return
authorVolker Lendecke <vlendec@samba.org>
Mon, 4 Jun 2007 19:45:41 +0000 (19:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:07 +0000 (12:23 -0500)
source/lib/messages.c

index 256d4d097ce9f039831d9db8fd559606a22b7b3a..b796e1472c1b3a4780107f44df9955211df7b11d 100644 (file)
@@ -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);