From ce2ff557bda5560cb9b614313d9ee0adbd57633d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 30 Dec 2008 22:49:01 +0100 Subject: Fix an ancient uninitialized variable read The callers of open_file_ntcreate expect *psbuf to be filled correctly --- source3/smbd/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b8be3ed304..e2a7afe897 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4594,6 +4594,7 @@ void reply_printopen(struct smb_request *req) { connection_struct *conn = req->conn; files_struct *fsp; + SMB_STRUCT_STAT sbuf; NTSTATUS status; START_PROFILE(SMBsplopen); @@ -4618,7 +4619,7 @@ void reply_printopen(struct smb_request *req) } /* Open for exclusive use, write only. */ - status = print_fsp_open(req, conn, NULL, req->vuid, fsp); + status = print_fsp_open(req, conn, NULL, req->vuid, fsp, &sbuf); if (!NT_STATUS_IS_OK(status)) { reply_nterror(req, status); -- cgit