1
0
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:
Takuho NAKANO 2020-07-19 15:13:19 +09:00
parent 97e0788c61
commit 54e583a8f6

View File

@ -2403,8 +2403,6 @@ TOKEN_LIST *ParseToken(char *src, char *separator)
StrCpy(str1, 0, src);
StrCpy(str2, 0, src);
Lock(token_lock);
{
#if (defined _MSC_VER)
tmp = strtok_s(str1, separator, &strtok_save);
#else
@ -2440,8 +2438,6 @@ TOKEN_LIST *ParseToken(char *src, char *separator)
tmp = strtok_r(NULL, separator, &strtok_save);
#endif // (defined _MSC_VER)
}
}
Unlock(token_lock);
Free(str1);
Free(str2);