summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-17 19:23:48 +0000
committerJeremy Allison <jra@samba.org>2004-03-17 19:23:48 +0000
commit41ea0d35aeb984cbd3bc3baf96594ab6b67c70e2 (patch)
treea984e2bc80b2d1daeee423764cad9096a13d7d96 /source3/smbd
parentaad3d8aeb013211398c223472d563c088d27b7f7 (diff)
downloadsamba-41ea0d35aeb984cbd3bc3baf96594ab6b67c70e2.tar.gz
samba-41ea0d35aeb984cbd3bc3baf96594ab6b67c70e2.tar.bz2
samba-41ea0d35aeb984cbd3bc3baf96594ab6b67c70e2.zip
Remove excess logging when probing for the length of the next mb char.
Jeremy. (This used to be commit 6339c4690aef7692571dd4c65dd0a12d56a7ffab)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 0fe73cddc2..f5c4f25e40 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -113,19 +113,23 @@ NTSTATUS check_path_syntax(pstring destname, const pstring srcname)
}
s++;
} else {
- switch(next_mb_char_size(s)) {
- case 4:
- *d++ = *s++;
- case 3:
- *d++ = *s++;
- case 2:
- *d++ = *s++;
- case 1:
- *d++ = *s++;
- break;
- default:
- DEBUG(0,("check_path_syntax: character length assumptions invalid !\n"));
- return NT_STATUS_INVALID_PARAMETER;
+ if (!(*s & 0x80)) {
+ *d++ = *s++;
+ } else {
+ switch(next_mb_char_size(s)) {
+ case 4:
+ *d++ = *s++;
+ case 3:
+ *d++ = *s++;
+ case 2:
+ *d++ = *s++;
+ case 1:
+ *d++ = *s++;
+ break;
+ default:
+ DEBUG(0,("check_path_syntax: character length assumptions invalid !\n"));
+ return NT_STATUS_INVALID_PARAMETER;
+ }
}
}
}