httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@locus.apache.org
Subject cvs commit: apache-1.3/src/modules/standard mod_so.c
Date Thu, 07 Dec 2000 08:27:26 GMT
manoj       00/12/07 00:27:25

  Modified:    src/modules/standard mod_so.c
  Log:
  Fix segv when LoadModule is put into a VirtualHost container.
  
  PR: 6942
  
  Revision  Changes    Path
  1.35      +10 -0     apache-1.3/src/modules/standard/mod_so.c
  
  Index: mod_so.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_so.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- mod_so.c	2000/11/14 09:57:27	1.34
  +++ mod_so.c	2000/12/07 08:27:22	1.35
  @@ -213,6 +213,11 @@
       moduleinfo *modie;
       int i;
   
  +    const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
  +    if (err != NULL) {
  +        return err;
  +    }
  +    
       /* 
        * check for already existing module
        * If it already exists, we have nothing to do 
  @@ -294,6 +299,11 @@
       ap_os_dso_handle_t handle;
       char *file;
   
  +    const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
  +    if (err != NULL) {
  +        return err;
  +    }
  +    
       file = ap_server_root_relative(cmd->pool, filename);
       
       if (!(handle = ap_os_dso_load(file))) {
  
  
  

Mime
View raw message