From: James Jones Date: Thu, 11 Aug 2022 10:31:06 +0000 (-0500) Subject: Fix error coverity detected in fr_exec_fork_wait() (CID #1503999) (#4665) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d856b9a7da31946177f51920d24875b922956825;p=thirdparty%2Ffreeradius-server.git Fix error coverity detected in fr_exec_fork_wait() (CID #1503999) (#4665) stdin_fd's state shouldn't influence stdout_pipe. --- diff --git a/src/lib/server/exec.c b/src/lib/server/exec.c index 5f7860f2993..3bc14f5ba0c 100644 --- a/src/lib/server/exec.c +++ b/src/lib/server/exec.c @@ -590,7 +590,7 @@ int fr_exec_fork_wait(pid_t *pid_p, int *stdin_fd, int *stdout_fd, int *stderr_f if (stdin_fd) { *stdin_fd = stdin_pipe[1]; - close(stdout_pipe[0]); + close(stdin_pipe[0]); } if (stdout_fd) {