From: Michael Adam Date: Mon, 11 Aug 2008 14:30:36 +0000 (+0200) Subject: smbd: prevent smbd from panicing with "clustering = no" but --with-cluster-support X-Git-Tag: samba-3.3.0pre1~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a687949d19ba9690f96e7869aa22e4d87840640e;p=thirdparty%2Fsamba.git smbd: prevent smbd from panicing with "clustering = no" but --with-cluster-support Michael --- diff --git a/source/smbd/server.c b/source/smbd/server.c index 3e816ee62de..0d855f876fc 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -575,7 +575,9 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ brl_register_msgs(smbd_messaging_context()); #ifdef CLUSTER_SUPPORT - ctdbd_register_reconfigure(messaging_ctdbd_connection()); + if (lp_clustering()) { + ctdbd_register_reconfigure(messaging_ctdbd_connection()); + } #endif #ifdef DEVELOPER