From a5d7b59b437ffd4b6ada4b8bc20402c643f0a917 Mon Sep 17 00:00:00 2001 From: Michael Ortmann Date: Tue, 21 Nov 2023 21:30:53 +0100 Subject: [PATCH] Cleanup --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index 80f78ec48..afb2c6d70 100644 --- a/src/net.c +++ b/src/net.c @@ -902,7 +902,7 @@ int sockread(char *s, int *len, sock_list *slist, int slistmax, int tclonly) /* For each sock, first check for SSL_pending(), the check for select() */ #ifdef TLS - if ((x == 0) && !tclonly) + if (!tclonly) for (i = 0; i < slistmax; i++) if (!(slist[i].flags & (SOCK_UNUSED | SOCK_TCL)) && slist[i].ssl && SSL_pending(slist[i].ssl)) { x = i;