1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

s4/torture/unix_info2: return NULL on failure

false is also NULL, but NULL is NULLer.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jun 17 02:18:32 UTC 2022 on sn-devel-184
This commit is contained in:
Douglas Bagnall 2022-04-14 11:47:57 +12:00 committed by Andrew Bartlett
parent 8261545a0f
commit eaf829ad0b

View File

@ -73,7 +73,7 @@ static struct smbcli_state *connect_to_server(struct torture_context *tctx)
if (!NT_STATUS_IS_OK(status)) {
torture_comment(tctx, "failed to connect to //%s/%s: %s\n",
host, share, nt_errstr(status));
torture_fail(tctx, "Failed to connect to server");
torture_result(tctx, TORTURE_FAIL, "Failed to connect to server");
return NULL;
}