From c0dac92b429b014c4c3d0778800d2baaf2610892 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 29 Feb 2012 03:57:34 +0100 Subject: [PATCH] s3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL metze --- source3/torture/test_smb2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 83d59ffbeb6..804b542bfda 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -1018,13 +1018,15 @@ bool run_smb2_multi_channel(int dummy) } status = smb2cli_flush(cli2, fid_persistent, fid_volatile); - if (!NT_STATUS_IS_OK(status)) { + if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); + return false; } status = smb2cli_flush(cli1, fid_persistent, fid_volatile); - if (!NT_STATUS_IS_OK(status)) { + if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) { printf("smb2cli_flush returned %s\n", nt_errstr(status)); + return false; } return true; -- 2.11.4.GIT