From eaf829ad0bf4bddf84da2dee0e375e36b13ad76d Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 14 Apr 2022 11:47:57 +1200 Subject: [PATCH] s4/torture/unix_info2: return NULL on failure false is also NULL, but NULL is NULLer. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri Jun 17 02:18:32 UTC 2022 on sn-devel-184 --- source4/torture/unix/unix_info2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/unix/unix_info2.c b/source4/torture/unix/unix_info2.c index 2098b225e7f..cf3ea3786bf 100644 --- a/source4/torture/unix/unix_info2.c +++ b/source4/torture/unix/unix_info2.c @@ -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; }