s3:nmbd: make use of cli_session_setup_anon()
[samba.git] / source3 / nmbd / nmbd_synclists.c
index 0135afc2f0a584952f3cffb985d610e93c659b89..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, "", "", 1, "", 0,
-                                              workgroup))) {
+       status = cli_session_setup_anon(cli);
+       if (!NT_STATUS_IS_OK(status)) {
                cli_shutdown(cli);
                return;
        }