httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_cgi.c
Date Tue, 18 Jun 2002 17:27:09 GMT
jerenkrantz    2002/06/18 10:27:09

  Modified:    src/modules/standard mod_cgi.c
  Log:
  It is entirely possible that dbuf is NULL.  Accessing *dbuf when NULL is not
  a good idea.
  
  (How this escaped for essentially 5 years is completely unknown)
  
  Revision  Changes    Path
  1.101     +1 -1      apache-1.3/src/modules/standard/mod_cgi.c
  
  Index: mod_cgi.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_cgi.c,v
  retrieving revision 1.100
  retrieving revision 1.101
  diff -u -r1.100 -r1.101
  --- mod_cgi.c	13 Mar 2002 21:05:33 -0000	1.100
  +++ mod_cgi.c	18 Jun 2002 17:27:09 -0000	1.101
  @@ -240,7 +240,7 @@
   	fprintf(f, "%s: %s\n", hdrs[i].key, hdrs[i].val);
       }
       if ((r->method_number == M_POST || r->method_number == M_PUT)
  -	&& *dbuf) {
  +	&& dbuf && *dbuf) {
   	fprintf(f, "\n%s\n", dbuf);
       }
   
  
  
  

Mime
View raw message