]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Avoid an else
authorVolker Lendecke <vl@samba.org>
Thu, 10 Mar 2022 14:56:07 +0000 (15:56 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 11 Mar 2022 18:22:28 +0000 (18:22 +0000)
We continue; in the if clause

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c

index 258f88ab4d27ffa2110b177520d58db69316d2a9..6180eba2fac0890cdaee6e25780a9190e058fdf1 100644 (file)
@@ -927,7 +927,9 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                        TALLOC_FREE(fname);
                        TALLOC_FREE(smb_fname);
                        continue;
-               } else if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+               }
+
+               if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
                        if (!(atname->flags & SMB_FILENAME_POSIX_PATH)) {
                                check_dfs_symlink = true;
                        }