diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-02 14:04:52 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-03 17:23:28 +0200 |
commit | 8751c3f2ef5700c4b317bfecf0e68facf09c6c1e (patch) | |
tree | 274412b59423c52ae33203bf17c1384bcd0f4cf4 /source3/smbd | |
parent | d792f59aeb4e74ea14d3c5979addd31b78b1a2d9 (diff) | |
download | samba-8751c3f2ef5700c4b317bfecf0e68facf09c6c1e.tar.gz samba-8751c3f2ef5700c4b317bfecf0e68facf09c6c1e.tar.bz2 samba-8751c3f2ef5700c4b317bfecf0e68facf09c6c1e.zip |
s3:smbd/close: do an early return in close_directory()
metze
Diffstat (limited to 'source3/smbd')
-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)) { |