Fix the HTTPS build

This commit is contained in:
2025-07-21 22:42:43 +02:00
parent 51d0729aaf
commit 73263da2c9
9 changed files with 137 additions and 101 deletions
+2 -1
View File
@@ -471,9 +471,10 @@ void socket_update(Socket *sock)
#ifdef HTTPS_ENABLED
// Start SSL handshake
if (!sock->ssl) {
if (sock->ssl == NULL) {
sock->ssl = SSL_new(sock->sec->ctx);
if (sock->ssl == NULL) {
ERR_print_errors_fp(stderr); // TODO: remove
sock->state = SOCKET_STATE_DIED;
sock->events = 0;
break;