]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd/close: do an early return in close_directory()
authorStefan Metzmacher <metze@samba.org>
Sat, 2 Jun 2012 12:04:52 +0000 (14:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 3 Jun 2012 15:23:28 +0000 (17:23 +0200)
metze

source3/smbd/close.c

index 158108484b759e5472935194d0a83268fc5b3eb5..8f8682bdd8300e068f4d61652561b84d038d0bd8 100644 (file)
@@ -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)) {