mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-04-03 18:00:08 +03:00
Remove token_lock in ParseToken
This commit is contained in:
parent
97e0788c61
commit
54e583a8f6
@ -2403,8 +2403,6 @@ TOKEN_LIST *ParseToken(char *src, char *separator)
|
|||||||
StrCpy(str1, 0, src);
|
StrCpy(str1, 0, src);
|
||||||
StrCpy(str2, 0, src);
|
StrCpy(str2, 0, src);
|
||||||
|
|
||||||
Lock(token_lock);
|
|
||||||
{
|
|
||||||
#if (defined _MSC_VER)
|
#if (defined _MSC_VER)
|
||||||
tmp = strtok_s(str1, separator, &strtok_save);
|
tmp = strtok_s(str1, separator, &strtok_save);
|
||||||
#else
|
#else
|
||||||
@ -2440,8 +2438,6 @@ TOKEN_LIST *ParseToken(char *src, char *separator)
|
|||||||
tmp = strtok_r(NULL, separator, &strtok_save);
|
tmp = strtok_r(NULL, separator, &strtok_save);
|
||||||
#endif // (defined _MSC_VER)
|
#endif // (defined _MSC_VER)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Unlock(token_lock);
|
|
||||||
|
|
||||||
Free(str1);
|
Free(str1);
|
||||||
Free(str2);
|
Free(str2);
|
||||||
|
Loading…
Reference in New Issue
Block a user