httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/server config.c
Date Sat, 15 Feb 2003 04:57:10 GMT
nd          2003/02/14 20:57:10

  Modified:    server   config.c
  Log:
  fill out parms->err_directive while looking for open parents.
  Otherwise when trying to log the error
  (a) we segfault (if the directive was in another file)
  (b) we show a wrong occurrence line number (start line of the previous
      container) or probably segfault, too (if no previous container exists).
  
  PR: 17093
  
  Revision  Changes    Path
  1.163     +3 -1      httpd-2.0/server/config.c
  
  Index: config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/config.c,v
  retrieving revision 1.162
  retrieving revision 1.163
  diff -u -r1.162 -r1.163
  --- config.c	3 Feb 2003 17:53:17 -0000	1.162
  +++ config.c	15 Feb 2003 04:57:10 -0000	1.163
  @@ -1170,7 +1170,9 @@
                                     curr_parent->filename,
                                     curr_parent->line_num,
                                     curr_parent->directive);
  -                                  curr_parent = curr_parent->parent;
  +
  +            parms->err_directive = curr_parent;
  +            curr_parent = curr_parent->parent;
           }
   
           return errmsg;
  
  
  

Mime
View raw message