1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3: smbd: SMB1 check_fsp_open() implicitly calls reply_nterror(.., NT_STATUS_INVALID_HANDLE) on error so don't duplicate in reply_close().

We'd end up sending 2 SMB1 error packets in this case.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Jeremy Allison 2023-01-09 17:28:06 -08:00 committed by Volker Lendecke
parent d7bab36ad1
commit 55f4ac65f9

View File

@ -4744,7 +4744,6 @@ void reply_close(struct smb_request *smb1req)
*/
if (!check_fsp_open(conn, smb1req, fsp)) {
reply_nterror(smb1req, NT_STATUS_INVALID_HANDLE);
END_PROFILE(SMBclose);
return;
}