diff options
-rw-r--r-- | sockets.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -301,6 +301,7 @@ int openssl_accept(int fd, struct client *clients, struct ircdstate *ircdstate, if (!fd_toggle_blocking(clients[clientindex].fd, 1)) { debugprint(DEBUG_CRIT, "fd_toggle_blocking off failed for fd %d: %s.\n", clients[clientindex].fd, strerror(errno)); disconnectclient(clients[clientindex].fd, clients, ircdstate, settings, clientcodes); + return 0; } // And mark as no longer pending SSL_accept() clients[clientindex].pendingsslaccept = 0; |