git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eca1302
)
r21961: Repair bug introduced by rev. 21960.
author
Jeremy Allison
<jra@samba.org>
Sat, 24 Mar 2007 18:22:20 +0000
(18:22 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:18:53 +0000
(12:18 -0500)
We need to do the initial strtok to set up the internal state.
Jeremy.
(This used to be commit
8c7042b4192cb33988c1bbccdd4a80bb99fd0118
)
source3/smbd/msdfs.c
patch
|
blob
|
history
diff --git
a/source3/smbd/msdfs.c
b/source3/smbd/msdfs.c
index 8f85b90fdcfd4221236792dd54363950f3d47685..916f661eaae9beb3205e96a48579a204fa349699 100644
(file)
--- a/
source3/smbd/msdfs.c
+++ b/
source3/smbd/msdfs.c
@@
-242,11
+242,17
@@
static BOOL parse_msdfs_symlink(TALLOC_CTX *ctx,
int *refcount)
{
pstring temp;
+ char *prot;
char *alt_path[MAX_REFERRAL_COUNT];
int count = 0, i;
struct referral *reflist;
pstrcpy(temp,target);
+ prot = strtok(temp,":");
+ if (!prot) {
+ DEBUG(0,("parse_msdfs_symlink: invalid path !\n"));
+ return False;
+ }
/* parse out the alternate paths */
while((count<MAX_REFERRAL_COUNT) &&