From: Volker Lendecke Date: Thu, 10 Mar 2022 14:56:07 +0000 (+0100) Subject: smbd: Avoid an else X-Git-Tag: tevent-0.12.0~463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dda30408fd0deccf2435ddb9cce60bbdadc9ded;p=thirdparty%2Fsamba.git smbd: Avoid an else We continue; in the if clause Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 258f88ab4d2..6180eba2fac 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -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; }