s3:nmbd: make use of cli_session_setup_anon()
authorStefan Metzmacher <metze@samba.org>
Fri, 28 Oct 2016 10:15:20 +0000 (12:15 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Nov 2016 10:00:29 +0000 (11:00 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
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;
        }