From b79b16d637d41a356c036c6aac932e4504d2d7b0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 29 Nov 2007 15:38:00 +0100 Subject: [PATCH] Tiny refactoring --- source/smbd/nttrans.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index d5abb372cfa..353cfcd3398 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -583,8 +583,7 @@ void reply_ntcreate_and_X(connection_struct *conn, * This filename is relative to a directory fid. */ char *rel_fname = NULL; - files_struct *dir_fsp = file_fsp( - SVAL(req->inbuf, smb_ntcreate_RootDirectoryFid)); + files_struct *dir_fsp = file_fsp(root_dir_fid); if(!dir_fsp) { reply_doserror(req, ERRDOS, ERRbadfid); @@ -1376,7 +1375,7 @@ static void call_nt_transact_create(connection_struct *conn, * This filename is relative to a directory fid. */ char *tmpname = NULL; - files_struct *dir_fsp = file_fsp(SVAL(params,4)); + files_struct *dir_fsp = file_fsp(root_dir_fid); if(!dir_fsp) { reply_doserror(req, ERRDOS, ERRbadfid); -- 2.11.4.GIT