From 6bb917ae3770a81346333120ec7116d4f8894941 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 28 Oct 2016 12:15:20 +0200 Subject: [PATCH] s3:nmbd: make use of cli_session_setup_anon() Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- source3/nmbd/nmbd_synclists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c index bba1bc1ebec..f3e524d932a 100644 --- a/source3/nmbd/nmbd_synclists.c +++ b/source3/nmbd/nmbd_synclists.c @@ -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; }