httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@hyperreal.com>
Subject cvs commit: apache/src http_config.c
Date Sat, 10 Aug 1996 22:12:21 GMT
akosut      96/08/10 15:12:21

  Modified:    src       http_config.c
  Log:
  Cause Apache to die gracefully (instad of a likely seg fault) if a module
  compiled under an older API version attempts to load.
  
  Reviewed by: sameer@c2.net, rasmus@madhaus.utcs.utoronto.ca
  
  Revision  Changes    Path
  1.18      +12 -0     apache/src/http_config.c
  
  Index: http_config.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_config.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -C3 -r1.17 -r1.18
  *** http_config.c	1996/07/27 17:18:25	1.17
  --- http_config.c	1996/08/10 22:12:18	1.18
  ***************
  *** 362,367 ****
  --- 362,379 ----
         * teased out...
         */
    
  +     /* At some point, we may want to offer back-compatibility for
  +      * loading modules that are for older versions of Apache. For now,
  +      * though, we don't.
  +      */
  + 
  +     if (m->version != MODULE_MAGIC_NUMBER) {
  + 	fprintf(stderr, "httpd: module \"%s\" is not compatible with this "
  + 		        "version of Apache.\n", m->name);
  + 	fprintf(stderr, "Please contact the author for the correct version.\n");
  + 	exit(1);
  +     }
  + 
        m->next = top_module;
        top_module = m;
        m->module_index = num_modules++;
  
  
  

Mime
View raw message