From c8fce0a02f61e46a0d277be7eeae05e2de2ee159 Mon Sep 17 00:00:00 2001 From: yrutschle Date: Mon, 27 Sep 2021 13:21:16 +0200 Subject: [PATCH] make sure no error will go to stderr if in inetd (fix #303) --- sslh-main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sslh-main.c b/sslh-main.c index 99d6297..c1076f6 100644 --- a/sslh-main.c +++ b/sslh-main.c @@ -197,6 +197,7 @@ int main(int argc, char *argv[], char* envp[]) if (cfg.inetd) { cfg.verbose = 0; + close(fileno(stderr)); /* Make sure no error will go to client */ start_shoveler(0); exit(0); }