From: Alan T. DeKok Date: Wed, 23 Oct 2019 21:15:28 +0000 (-0400) Subject: try to quiet static analyzer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfdc0a327f68ea3c498a73f1a9e014528004bdbb;p=thirdparty%2Ffreeradius-server.git try to quiet static analyzer --- diff --git a/src/lib/server/exec.c b/src/lib/server/exec.c index 38206926a56..cdf60f970af 100644 --- a/src/lib/server/exec.c +++ b/src/lib/server/exec.c @@ -308,7 +308,7 @@ pid_t radius_start_program(char const *cmd, REQUEST *request, bool exec_wait, * If we are debugging, then we want the error * messages to go to the STDERR of the server. */ - if (!RDEBUG_ENABLED) dup2(devnull, STDERR_FILENO); + if (!request || !RDEBUG_ENABLED) dup2(devnull, STDERR_FILENO); close(devnull); /*