You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2002/03/30 23:48:39 UTC

cvs commit: httpd-2.0/server util_script.c

brianp      02/03/30 14:48:39

  Modified:    server   util_script.c
  Log:
  Fix for a bug that I introduced when eliminating the single-byte
  reads in mod_cgi: eof wasn't treated as an error condition when
  reading the script headers, so we were delivering a 200 when a
  CGI script produced no output.
  
  Revision  Changes    Path
  1.75      +1 -1      httpd-2.0/server/util_script.c
  
  Index: util_script.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_script.c,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- util_script.c	23 Mar 2002 23:19:40 -0000	1.74
  +++ util_script.c	30 Mar 2002 22:48:39 -0000	1.75
  @@ -636,7 +636,7 @@
   
           rv = apr_bucket_read(e, &bucket_data, &bucket_data_len,
                                APR_BLOCK_READ);
  -        if (!APR_STATUS_IS_SUCCESS(rv)) {
  +        if (!APR_STATUS_IS_SUCCESS(rv) || (bucket_data_len == 0)) {
               return 0;
           }
           src = bucket_data;