summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sockets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sockets.c b/sockets.c
index 2ed993e..f201d79 100644
--- a/sockets.c
+++ b/sockets.c
@@ -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;