diff options
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r-- | source3/smbd/filename.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 0fda8879da..912e3a41f3 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -506,6 +506,9 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx, } } + /* Stat failed - ensure we don't use it. */ + SET_STAT_INVALID(smb_fname->st); + /* * Missing last component is ok - new file. * Also deal with permission denied elsewhere. |