From dd7313a1307aa2b3e7d10678a2bce6690e1c2125 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 7 Feb 2011 17:34:22 -0800 Subject: Use corrcet function instead of cut-and-paste code. Autobuild-User: Jeremy Allison Autobuild-Date: Tue Feb 8 03:23:40 CET 2011 on sn-devel-104 --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') 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; -- cgit