1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Use corrcet function instead of cut-and-paste code.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb  8 03:23:40 CET 2011 on sn-devel-104
This commit is contained in:
Jeremy Allison 2011-02-07 17:34:22 -08:00
parent 0a7f1af82c
commit dd7313a130

View File

@ -4821,7 +4821,7 @@ void reply_close(struct smb_request *req)
* We can only use check_fsp if we know it's not a directory.
*/
if(!fsp || (fsp->conn != conn) || (fsp->vuid != req->vuid)) {
if (!check_fsp_open(conn, req, fsp)) {
reply_nterror(req, NT_STATUS_INVALID_HANDLE);
END_PROFILE(SMBclose);
return;