mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:torture: avoid nesting of macros and function calls in torture_cli_session_setup2()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
655d6b508a
commit
c55a4e0b81
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user