httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_include.c
Date Thu, 21 Mar 2002 06:13:22 GMT
jwoolley    02/03/20 22:13:22

  Modified:    src/modules/standard mod_include.c
  Log:
  Fix a bug in #if and #elif whereby mod_include would not
  notice premature EOF's while looking for the "expr=" tag.
  
  Revision  Changes    Path
  1.133     +2 -2      apache-1.3/src/modules/standard/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_include.c,v
  retrieving revision 1.132
  retrieving revision 1.133
  diff -u -d -u -r1.132 -r1.133
  --- mod_include.c	13 Mar 2002 21:05:33 -0000	1.132
  +++ mod_include.c	21 Mar 2002 06:13:21 -0000	1.133
  @@ -1959,7 +1959,7 @@
       expr = NULL;
       while (1) {
           tag_val = get_tag(r->pool, in, tag, sizeof(tag), 0);
  -        if (*tag == '\0') {
  +        if (!tag_val || *tag == '\0') {
               return 1;
           }
           else if (!strcmp(tag, "done")) {
  @@ -2002,7 +2002,7 @@
       expr = NULL;
       while (1) {
           tag_val = get_tag(r->pool, in, tag, sizeof(tag), 0);
  -        if (*tag == '\0') {
  +        if (!tag_val || *tag == '\0') {
               return 1;
           }
           else if (!strcmp(tag, "done")) {
  
  
  

Mime
View raw message