diff options
-rw-r--r-- | source3/smbd/close.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 158108484b..8f8682bdd8 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -1063,8 +1063,7 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp, if (lck == NULL) { DEBUG(0, ("close_directory: Could not get share mode lock for " "%s\n", fsp_str_dbg(fsp))); - status = NT_STATUS_INVALID_PARAMETER; - goto out; + return NT_STATUS_INVALID_PARAMETER; } if (!del_share_mode(lck, fsp)) { |