diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/test_smb2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 83d59ffbeb..804b542bfd 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; |