summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-07-18 22:22:30 +0000
committerSimo Sorce <idra@samba.org>2002-07-18 22:22:30 +0000
commit9154aa791ecdbad975ac23943af08ec2ef939f5e (patch)
tree1c198fa3ef168ca680787324ee4a56e8315b98e2 /source3
parent5d840349bddead00cda36c3879691c879a14d4f3 (diff)
downloadsamba-9154aa791ecdbad975ac23943af08ec2ef939f5e.tar.gz
samba-9154aa791ecdbad975ac23943af08ec2ef939f5e.tar.bz2
samba-9154aa791ecdbad975ac23943af08ec2ef939f5e.zip
Unneded extra check on len
(This used to be commit e3b3c148208792ac2ccbfd468ad580b1264f9876)
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) {