git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
393176e
)
smbd: Avoid an "else"
author
Volker Lendecke
<vl@samba.org>
Sun, 13 Mar 2022 14:58:03 +0000
(15:58 +0100)
committer
Jeremy Allison
<jra@samba.org>
Wed, 23 Mar 2022 16:57:28 +0000
(16:57 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c
patch
|
blob
|
history
diff --git
a/source3/smbd/dir.c
b/source3/smbd/dir.c
index 059de584d17c9ee5641bc1cd725296087fc94877..51ac0bfa75126a431b608d7384788380a3b9f24d 100644
(file)
--- a/
source3/smbd/dir.c
+++ b/
source3/smbd/dir.c
@@
-507,7
+507,8
@@
static char *dptr_ReadDirName(TALLOC_CTX *ctx,
if (NT_STATUS_IS_OK(status)) {
name = found_name;
goto clean;
- } else if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+ }
+ if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
/* The case-insensitive lookup was authoritative. */
goto clean;
}