diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/connect.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c index 080bb5a1c5..a1215e3ae7 100644 --- a/source4/torture/smb2/connect.c +++ b/source4/torture/smb2/connect.c @@ -195,7 +195,19 @@ BOOL torture_smb2_connect(void) torture_smb2_close(tree, h1); torture_smb2_close(tree, h2); - status = smb2_logoff(tree); + status = smb2_tdis(tree); + if (!NT_STATUS_IS_OK(status)) { + printf("tdis failed - %s\n", nt_errstr(status)); + return False; + } + + status = smb2_tdis(tree); + if (!NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_NAME_DELETED)) { + printf("tdis should have disabled session - %s\n", nt_errstr(status)); + return False; + } + + status = smb2_logoff(tree); if (!NT_STATUS_IS_OK(status)) { printf("Logoff failed - %s\n", nt_errstr(status)); return False; |