svn commit: samba r15803 - in branches/SAMBA_4_0/source:
smb_server/smb2 torture/smb2
metze at samba.org
metze at samba.org
Mon May 22 14:18:19 GMT 2006
Author: metze
Date: 2006-05-22 14:18:17 +0000 (Mon, 22 May 2006)
New Revision: 15803
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15803
Log:
the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
metze
Modified:
branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h
branches/SAMBA_4_0/source/torture/smb2/connect.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h 2006-05-22 14:14:23 UTC (rev 15802)
+++ branches/SAMBA_4_0/source/smb_server/smb2/smb2_server.h 2006-05-22 14:18:17 UTC (rev 15803)
@@ -114,7 +114,7 @@
#define SMB2SRV_CHECK_FILE_HANDLE(handle) do { \
if (!handle) { \
- smb2srv_send_error(req, NT_STATUS_INVALID_HANDLE); \
+ smb2srv_send_error(req, NT_STATUS_NOT_FOUND); \
return; \
} \
} while (0)
Modified: branches/SAMBA_4_0/source/torture/smb2/connect.c
===================================================================
--- branches/SAMBA_4_0/source/torture/smb2/connect.c 2006-05-22 14:14:23 UTC (rev 15802)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c 2006-05-22 14:18:17 UTC (rev 15803)
@@ -207,6 +207,12 @@
torture_smb2_close(tree, h1);
torture_smb2_close(tree, h2);
+ status = smb2_util_close(tree, h1);
+ if (!NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) {
+ printf("close should have closed the handle - %s\n", nt_errstr(status));
+ return False;
+ }
+
status = smb2_tdis(tree);
if (!NT_STATUS_IS_OK(status)) {
printf("tdis failed - %s\n", nt_errstr(status));
More information about the samba-cvs
mailing list