httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/loggers mod_log_config.c
Date Sun, 16 Dec 2001 09:54:14 GMT
brianp      01/12/16 01:54:14

  Modified:    modules/loggers mod_log_config.c
  Log:
  Replaced an instance of apr_pool_userdata_setn() with apr_pool_userdata_set()..
  the value of "userdata_key" is an address on the stack when compiled with
  gcc 2.95.3 on Solaris/Sparc, so storing the address directly in the hash
  table is unsafe.
  
  Revision  Changes    Path
  1.72      +2 -2      httpd-2.0/modules/loggers/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- mod_log_config.c	2001/11/24 00:08:30	1.71
  +++ mod_log_config.c	2001/12/16 09:54:14	1.72
  @@ -1024,8 +1024,8 @@
        */
       apr_pool_userdata_get(&data, userdata_key, s->process->pool);
       if (!data) {
  -        apr_pool_userdata_setn((const void *)1, userdata_key,
  -                               NULL, s->process->pool);
  +        apr_pool_userdata_set((const void *)1, userdata_key,
  +                              NULL, s->process->pool);
           /* If logging for the first time after a restart, keep going. */
           if (!ap_my_generation) {
               return cls;
  
  
  

Mime
View raw message