1
0
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:
Ilya Shipitsin 2019-01-29 19:31:57 +05:00 committed by GitHub
commit c253c55a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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++)

View File

@ -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;