From 5e889d33c0ab3c94cbc0c7fa1b9ae4bcae81567f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 4 May 2009 14:39:56 +0200 Subject: [PATCH] Do not crash in ctdbd_traverse if ctdbd is not around (cherry picked from commit 7ad42cc74322a1435c9cce9b286b13cd9b490ec6) --- source3/lib/ctdbd_conn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 88d82caab83..dde377581b9 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -1101,6 +1101,11 @@ NTSTATUS ctdbd_traverse(uint32 db_id, struct ctdbd_traverse_state state; status = ctdbd_init_connection(NULL, &conn); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(0, ("ctdbd_init_connection failed: %s\n", + nt_errstr(status))); + return status; + } t.db_id = db_id; t.srvid = conn->rand_srvid; -- 2.34.1