mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r21961: Repair bug introduced by rev. 21960.
We need to do the initial strtok to set up the internal state.
Jeremy.
(This used to be commit 8c7042b419
)
This commit is contained in:
parent
eca13022ef
commit
9527f93272
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user