httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_config.c
Date Mon, 22 May 2000 02:57:44 GMT
rbb         00/05/21 19:57:44

  Modified:    src/main http_config.c
  Log:
  Fix the config parser so that if there is no current node, and we are
  evaluating an EXEC_ON_READ directive, and the directive's sub_tree is empty,
  we don't try to set the node's parent pointer.  This stops a seg fault.
  Submitted by:	Jeff Trawick
  
  Revision  Changes    Path
  1.49      +2 -0      apache-2.0/src/main/http_config.c
  
  Index: http_config.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_config.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- http_config.c	2000/05/19 17:22:47	1.48
  +++ http_config.c	2000/05/22 02:57:44	1.49
  @@ -876,6 +876,8 @@
                   (*current) = sub_tree;
                   if (*curr_parent) {
                       (*curr_parent)->first_child = (*current);
  +                }
  +                if (*current) {
                       (*current)->parent = (*curr_parent);
                   }
               }
  
  
  

Mime
View raw message