diff options
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 89d137506b..b6a75bb16f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2756,7 +2756,7 @@ static NTSTATUS open_directory(connection_struct *conn, } status = vfs_stat_fsp(fsp); - if (NT_STATUS_IS_OK(status)) { + if (!NT_STATUS_IS_OK(status)) { fd_close(fsp); file_free(req, fsp); return status; |