mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Shutdown SSL connection completely if accept failed
This commit is contained in:
parent
7f98fb00ea
commit
b4e46c4f8f
@ -28887,9 +28887,10 @@ void server_loop(void)
|
|||||||
if (SSL_accept(_ssl_con) < 0) {
|
if (SSL_accept(_ssl_con) < 0) {
|
||||||
if (is_verbose())
|
if (is_verbose())
|
||||||
eprintf("SSL_accept failed\n");
|
eprintf("SSL_accept failed\n");
|
||||||
closesocket(_sock);
|
SSL_shutdown(ka_ssl_con[i_conn]);
|
||||||
|
SSL_free(ka_ssl_con[i_conn]);
|
||||||
ka_sock[i_conn] = 0;
|
ka_sock[i_conn] = 0;
|
||||||
ka_ssl_con[i_conn] = _ssl_con;
|
ka_ssl_con[i_conn] = NULL;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user