httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl ssl_util_table.c
Date Wed, 12 Mar 2003 06:26:22 GMT
madhum      2003/03/11 22:26:22

  Modified:    modules/ssl ssl_util_table.c
  Log:
  Fix PR 17864, and also fixes a SEGV problem when SHMHT was used.
  The porting of the code from mod_ssl 1.3.x was still incomplete, and depended
  upon a complete implentation of apr_shm (hence pieces of code was #if 0'ed out).
  
  Revision  Changes    Path
  1.9       +1 -5      httpd-2.0/modules/ssl/ssl_util_table.c
  
  Index: ssl_util_table.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_util_table.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ssl_util_table.c	3 Feb 2003 17:53:13 -0000	1.8
  +++ ssl_util_table.c	12 Mar 2003 06:26:22 -0000	1.9
  @@ -989,9 +989,7 @@
    */
   int table_clear(table_t * table_p)
   {
  -#if 0
       table_entry_t *entry_p, *next_p;
  -#endif
       table_entry_t **bucket_p, **bounds_p;
   
       if (table_p == NULL)
  @@ -1000,14 +998,12 @@
           return TABLE_ERROR_PNT;
       /* free the table allocation and table structure */
       bounds_p = table_p->ta_buckets + table_p->ta_bucket_n;
  -    for (bucket_p = table_p->ta_buckets; bucket_p <= bounds_p; bucket_p++) {
  -#if 0
  +    for (bucket_p = table_p->ta_buckets; bucket_p < bounds_p; bucket_p++) {
           for (entry_p = *bucket_p; entry_p != NULL; entry_p = next_p) {
               /* record the next pointer before we free */
               next_p = entry_p->te_next_p;
               table_p->ta_free(table_p->opt_param, entry_p);
           }
  -#endif
           /* clear the bucket entry after we free its entries */
           *bucket_p = NULL;
       }
  
  
  

Mime
View raw message