summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap_ctdb.c6
-rw-r--r--source3/lib/messages_ctdbd.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index fff5ad1d9f..73d8eeffea 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -363,7 +363,11 @@ static struct ctdbd_connection *db_ctdbd_conn(struct db_ctdb_ctx *ctx)
}
if (ctx->conn == NULL) {
- ctdbd_init_connection(ctx, &ctx->conn);
+ NTSTATUS status;
+ status = ctdbd_init_connection(ctx, &ctx->conn);
+ if (!NT_STATUS_IS_OK(status)) {
+ return NULL;
+ }
set_my_vnn(ctdbd_vnn(ctx->conn));
}
diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c
index dbdc8db3c1..6e9b934a75 100644
--- a/source3/lib/messages_ctdbd.c
+++ b/source3/lib/messages_ctdbd.c
@@ -88,7 +88,7 @@ NTSTATUS messaging_ctdbd_init(struct messaging_context *msg_ctx,
status = ctdbd_messaging_connection(ctx, &ctx->conn);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(10, ("ctdbd_init_connection failed: %s\n",
+ DEBUG(10, ("ctdbd_messaging_connection failed: %s\n",
nt_errstr(status)));
TALLOC_FREE(result);
return status;