summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/mangle_hash2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c
index 9d64728c7a..6b53cc72aa 100644
--- a/source3/smbd/mangle_hash2.c
+++ b/source3/smbd/mangle_hash2.c
@@ -207,7 +207,7 @@ static BOOL is_mangled_component(const char *name)
if (len > 12 || len < 8) return False;
/* the best distinguishing characteristic is the ~ */
- if (len > 7 && name[6] != '~') return False;
+ if (name[6] != '~') return False;
/* check extension */
if (len > 8) {