summaryrefslogtreecommitdiffstats
path: root/source/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
commit3909576849025ed21e5282abc892ae7582ee0275 (patch)
tree6f83d0da086005348f3519eccce06ecf31fc3188 /source/smbd/mangle.c
parent1d4ce07435f3d6dac41a2616a044bcd441dbaced (diff)
downloadsamba-3909576849025ed21e5282abc892ae7582ee0275.tar.gz
samba-3909576849025ed21e5282abc892ae7582ee0275.tar.xz
samba-3909576849025ed21e5282abc892ae7582ee0275.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).
Diffstat (limited to 'source/smbd/mangle.c')
-rw-r--r--source/smbd/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index 96e787b07fb..a08402a85ea 100644
--- a/source/smbd/mangle.c
+++ b/source/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 == ')')))