wininet: Always check if context can be deleted when freeing netconn.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c9109309c8
commit
9678045056
|
@ -392,9 +392,9 @@ void free_netconn(netconn_t *netconn)
|
|||
heap_free(netconn->extra_buf);
|
||||
netconn->extra_buf = NULL;
|
||||
netconn->extra_len = 0;
|
||||
if (SecIsValidHandle(&netconn->ssl_ctx))
|
||||
DeleteSecurityContext(&netconn->ssl_ctx);
|
||||
}
|
||||
if (SecIsValidHandle(&netconn->ssl_ctx))
|
||||
DeleteSecurityContext(&netconn->ssl_ctx);
|
||||
|
||||
close_netconn(netconn);
|
||||
heap_free(netconn);
|
||||
|
|
Loading…
Reference in New Issue