summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-08-28 18:59:52 +0000
committerJeremy Allison <jra@samba.org>1997-08-28 18:59:52 +0000
commit45f998293034f399ebf8c76ff41c8b9b55b86776 (patch)
tree1ad1c8b8e8a14f585591e9019ee79a62e0d190cc /source3/smbd/mangle.c
parent22e4d4e9d44577593d53ad84e77c9c078774d2e9 (diff)
downloadsamba-45f998293034f399ebf8c76ff41c8b9b55b86776.tar.gz
samba-45f998293034f399ebf8c76ff41c8b9b55b86776.tar.bz2
samba-45f998293034f399ebf8c76ff41c8b9b55b86776.zip
mangle.c: Fixed bug that caused string to run off the end of the mangled map.
server.c: Changed comparison from dname to name2 - seems correct - don't know why I changed it originally. hmmmmm. trans2.c: Made lanman2 code more similar to scan_directory(). I should make the trans2 code call scan_dir as they are so similar. Jeremy(jallison@whistle.com). (This used to be commit 3909576849025ed21e5282abc892ae7582ee0275)
Diffstat (limited to 'source3/smbd/mangle.c')
-rw-r--r--source3/smbd/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index 96e787b07f..a08402a85e 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -414,9 +414,9 @@ static void do_fwd_mangled_map(char *s, char *MangledMap)
while (*start) {
while ((*start) && (*start != '('))
start++;
- start++; /* Skip the ( */
if (!*start)
continue; /* Always check for the end. */
+ start++; /* Skip the ( */
end = start; /* Search for the ' ' or a ')' */
DEBUG(5,("Start of first in pair '%s'\n", start));
while ((*end) && !((*end == ' ') || (*end == ')')))