From c55a4e0b81ab3f87b7fa0d323d0752aa5ff71c1c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 23 Oct 2014 10:18:21 +0200 Subject: s3:torture: avoid nesting of macros and function calls in torture_cli_session_setup2() Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/torture/torture.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 2cd63e113c..f90f882093 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -416,10 +416,11 @@ bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid) bool ret; cli_state_set_uid(cli, 0); - ret = NT_STATUS_IS_OK(cli_session_setup(cli, username, - password, passlen, - password, passlen, - workgroup)); + status = cli_session_setup(cli, username, + password, passlen, + password, passlen, + workgroup); + ret = NT_STATUS_IS_OK(status); *new_vuid = cli_state_get_uid(cli); cli_state_set_uid(cli, old_vuid); return ret; -- cgit