]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Correctly check script_in variable.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 18 Feb 2002 03:31:27 +0000 (03:31 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 18 Feb 2002 03:31:27 +0000 (03:31 +0000)
(script_out and script_err are already correct.)
PR: 9669

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93468 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c

index a3bae34e082c476a43267fead62d462938f853b0..cd7bb9930d257931ed08ee1e3297a688330a38ca 100644 (file)
@@ -465,7 +465,7 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
             apr_pool_note_subprocess(p, procnew, kill_after_timeout);
 
             *script_in = procnew->out;
-            if (!script_in)
+            if (!*script_in)
                 return APR_EBADF;
             apr_file_pipe_timeout_set(*script_in, (int)(r->server->timeout * APR_USEC_PER_SEC));