From 5d8ada549e629cfe53ed973d66f5fcf0a3bd0a8c Mon Sep 17 00:00:00 2001 From: Björn Baumbach Date: Thu, 20 Jan 2011 14:08:42 +0100 Subject: s3-masktest: Fix cli_errstr() usage (part of bug #7864) Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher --- source3/torture/masktest.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source3/torture') diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c index 1fc46b9c28..8879102844 100644 --- a/source3/torture/masktest.c +++ b/source3/torture/masktest.c @@ -226,11 +226,12 @@ static struct cli_state *connect_one(char *share) } } - if (!NT_STATUS_IS_OK(cli_session_setup(c, username, - password, strlen(password), - password, strlen(password), - lp_workgroup()))) { - DEBUG(0,("session setup failed: %s\n", cli_errstr(c))); + status = cli_session_setup(c, username, + password, strlen(password), + password, strlen(password), + lp_workgroup()); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(0, ("session setup failed: %s\n", nt_errstr(status))); return NULL; } -- cgit