]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: prevent smbd from panicing with "clustering = no" but --with-cluster-support
authorMichael Adam <obnox@samba.org>
Mon, 11 Aug 2008 14:30:36 +0000 (16:30 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 13 Aug 2008 09:54:13 +0000 (11:54 +0200)
Michael

source/smbd/server.c

index 3e816ee62de28197cdee24ff4c71747209dd1d75..0d855f876fc87fbd28545bcd37fc1636c12a02df 100644 (file)
@@ -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