s3:nmbd: make use of cli_session_setup_anon()
[samba.git] / source3 / nmbd / nmbd_synclists.c
index bba1bc1ebec096f865dd425fe0ceae7eff8cfd2c..f3e524d932a292a7d697d0170266cd75869154ec 100644 (file)
@@ -95,8 +95,8 @@ static void sync_child(char *name, int nm_type,
                return;
        }
 
-       if (!NT_STATUS_IS_OK(cli_session_setup(cli, "", "",
-                                              workgroup))) {
+       status = cli_session_setup_anon(cli);
+       if (!NT_STATUS_IS_OK(status)) {
                cli_shutdown(cli);
                return;
        }