Use corrcet function instead of cut-and-paste code.
authorJeremy Allison <jra@samba.org>
Tue, 8 Feb 2011 01:34:22 +0000 (17:34 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 8 Feb 2011 02:23:40 +0000 (03:23 +0100)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb  8 03:23:40 CET 2011 on sn-devel-104

source3/smbd/reply.c

index f7265e010d40813cfdd6852b9f48e485f585f1dd..e64627b06c10954d4ad4f14ae137cdd3c1c13d7b 100644 (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;