mirror of
https://github.com/reactos/wine.git
synced 2025-01-24 21:10:50 +00:00
secur32: Don't try to cleanup uninitialized handles in SECUR32_deinitSchannelSP().
This commit is contained in:
parent
5b47904231
commit
226519efbc
@ -1415,13 +1415,13 @@ fail:
|
||||
|
||||
void SECUR32_deinitSchannelSP(void)
|
||||
{
|
||||
int i = schan_handle_table_size;
|
||||
SIZE_T i = schan_handle_count;
|
||||
|
||||
if (!libgnutls_handle) return;
|
||||
|
||||
/* deinitialized sessions first because a pointer to the credentials
|
||||
* are stored for the session by calling gnutls_credentials_set. */
|
||||
while (--i)
|
||||
while (i--)
|
||||
{
|
||||
if (schan_handle_table[i].type == SCHAN_HANDLE_CTX)
|
||||
{
|
||||
@ -1430,8 +1430,8 @@ void SECUR32_deinitSchannelSP(void)
|
||||
HeapFree(GetProcessHeap(), 0, ctx);
|
||||
}
|
||||
}
|
||||
i = schan_handle_table_size;
|
||||
while (--i)
|
||||
i = schan_handle_count;
|
||||
while (i--)
|
||||
{
|
||||
if (schan_handle_table[i].type != SCHAN_HANDLE_FREE)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user