From: Egor Date: Wed, 11 May 2022 12:43:54 +0000 (+0300) Subject: fix errno output in recvProc X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=3ef87b0685cf300c75400af864b0999618657514;p=patchyircd.git fix errno output in recvProc --- diff --git a/net.c b/net.c index 850ef4d..d027f88 100644 --- a/net.c +++ b/net.c @@ -85,8 +85,8 @@ void recvProc(struct client_data *cl) { return; // Error case -1: - killConnection(cl, false); fprintf(stderr, "tls_read: %s\n", tls_error(cl->cctx)); + killConnection(cl, false); return; case TLS_WANT_POLLIN: return; @@ -106,8 +106,8 @@ void recvProc(struct client_data *cl) { // Error case -1: if(!net_wouldblock()){ - killConnection(cl, false); net_perror("RECV"); + killConnection(cl, false); } return; }