mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
call ssl_socket_close for ssl sockets (#14903)
This commit is contained in:
parent
4d5bea1208
commit
0ec1a6acfd
@ -1211,14 +1211,16 @@ void net_http_delete(struct http_t *state)
|
|||||||
|
|
||||||
if (state->sock_state.fd >= 0)
|
if (state->sock_state.fd >= 0)
|
||||||
{
|
{
|
||||||
socket_close(state->sock_state.fd);
|
|
||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
if (state->sock_state.ssl && state->sock_state.ssl_ctx)
|
if (state->sock_state.ssl && state->sock_state.ssl_ctx)
|
||||||
{
|
{
|
||||||
|
ssl_socket_close(state->sock_state.ssl_ctx);
|
||||||
ssl_socket_free(state->sock_state.ssl_ctx);
|
ssl_socket_free(state->sock_state.ssl_ctx);
|
||||||
state->sock_state.ssl_ctx = NULL;
|
state->sock_state.ssl_ctx = NULL;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
|
socket_close(state->sock_state.fd);
|
||||||
}
|
}
|
||||||
free(state);
|
free(state);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user