summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-07 17:34:22 -0800
committerJeremy Allison <jra@samba.org>2011-02-08 03:23:40 +0100
commitdd7313a1307aa2b3e7d10678a2bce6690e1c2125 (patch)
treec27ebf23de953eff58808b1ded62fbadbf929e47 /source3/smbd
parent0a7f1af82ca94a9ea3f2fbe6b4bf64ff17c76cce (diff)
downloadsamba-dd7313a1307aa2b3e7d10678a2bce6690e1c2125.tar.gz
samba-dd7313a1307aa2b3e7d10678a2bce6690e1c2125.tar.bz2
samba-dd7313a1307aa2b3e7d10678a2bce6690e1c2125.zip
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
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index f7265e010d..e64627b06c 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -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;