smbpasswd: Initialize messaging for messaging_ctdb_conn
authorVolker Lendecke <vl@samba.org>
Fri, 16 Jun 2017 13:20:39 +0000 (15:20 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 25 Jul 2017 15:43:18 +0000 (17:43 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/smbpasswd.c

index 437a5e551bba45cd24ddcc92ce503abba6ede6e9..aa6b857a2581f00c08323ab227e8eb74214a28ce 100644 (file)
@@ -603,6 +603,10 @@ int main(int argc, char **argv)
 
        setup_logging("smbpasswd", DEBUG_STDERR);
 
+       if (server_messaging_context() == NULL) {
+               return 1;
+       }
+
        /*
         * Set the machine NETBIOS name if not already
         * set from the config file.