git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r6977: Fix bug #2735 (not mangling control characters) plus
[samba.git]
/
source3
/
smbd
/
mangle_hash.c
diff --git
a/source3/smbd/mangle_hash.c
b/source3/smbd/mangle_hash.c
index fee386d6db951165cc3839114b9cc5cea084e088..871702623a8218498cc4aacd291e4ed3ea487ebe 100644
(file)
--- a/
source3/smbd/mangle_hash.c
+++ b/
source3/smbd/mangle_hash.c
@@
-95,6
+95,10
@@
static NTSTATUS has_illegal_chars(const smb_ucs2_t *s, BOOL allow_wildcards)
}
while (*s) {
+ if (*s <= 0x1f) {
+ /* Control characters. */
+ return NT_STATUS_UNSUCCESSFUL;
+ }
switch(*s) {
case UCS2_CHAR('\\'):
case UCS2_CHAR('/'):