From: Volker Lendecke Date: Mon, 4 May 2009 12:39:56 +0000 (+0200) Subject: Do not crash in ctdbd_traverse if ctdbd is not around X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f0f6b7fb428e4cc8e5e782a0038a847d74edcc;p=thirdparty%2Fsamba.git Do not crash in ctdbd_traverse if ctdbd is not around --- diff --git a/source/lib/ctdbd_conn.c b/source/lib/ctdbd_conn.c index 7c32d578c13..465c09a32db 100644 --- a/source/lib/ctdbd_conn.c +++ b/source/lib/ctdbd_conn.c @@ -1094,6 +1094,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;