]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to quiet static analyzer
authorAlan T. DeKok <aland@freeradius.org>
Wed, 23 Oct 2019 21:15:28 +0000 (17:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 23 Oct 2019 21:39:07 +0000 (17:39 -0400)
src/lib/server/exec.c

index 38206926a569c28d322f079377d435f60d175279..cdf60f970afa39eb872387d63084c5b8677e08f3 100644 (file)
@@ -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);
 
                /*