mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge pull request #862 from davidebeatrici/mayaqua-getcipherlist-double-free-fix
Merge PR #862: Fix crashes in GetCipherList() and StGetServerCipherList()
This commit is contained in:
commit
c253c55a8c
@ -8156,7 +8156,7 @@ UINT StGetServerCipherList(ADMIN *a, RPC_STR *t)
|
|||||||
{
|
{
|
||||||
UINT size = StrSize(ciphers->Token[0]);
|
UINT size = StrSize(ciphers->Token[0]);
|
||||||
t->String = Malloc(size);
|
t->String = Malloc(size);
|
||||||
StrCat(t->String, size, ciphers->Token[0]);
|
StrCpy(t->String, size, ciphers->Token[0]);
|
||||||
i = 1;
|
i = 1;
|
||||||
|
|
||||||
for (; i < ciphers->NumTokens; i++)
|
for (; i < ciphers->NumTokens; i++)
|
||||||
|
@ -16507,7 +16507,6 @@ TOKEN_LIST *GetCipherList()
|
|||||||
}
|
}
|
||||||
|
|
||||||
sk_SSL_CIPHER_free(sk);
|
sk_SSL_CIPHER_free(sk);
|
||||||
FreeSSLCtx(ctx);
|
|
||||||
SSL_free(ssl);
|
SSL_free(ssl);
|
||||||
|
|
||||||
return ciphers;
|
return ciphers;
|
||||||
|
Loading…
Reference in New Issue
Block a user