httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/ldap util_ldap_cache_mgr.c
Date Sat, 30 Oct 2004 04:49:58 GMT
bnicholes    2004/10/29 21:49:58

  Modified:    modules/ldap util_ldap_cache_mgr.c
  Log:
  Don't display the cache statistics if the node is empty
  
  Revision  Changes    Path
  1.12      +18 -12    httpd-2.0/modules/ldap/util_ldap_cache_mgr.c
  
  Index: util_ldap_cache_mgr.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ldap/util_ldap_cache_mgr.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- util_ldap_cache_mgr.c	3 Oct 2004 16:24:53 -0000	1.11
  +++ util_ldap_cache_mgr.c	30 Oct 2004 04:49:58 -0000	1.12
  @@ -645,10 +645,12 @@
                                "<td><font size='-1' face='Arial,Helvetica' color='#ffffff'><b>Last
Bind</b></font></td>"
                                "</tr>\n", r
                               );
  -                    for (i=0; i < n->search_cache->size; ++i) {
  -                        for (p = n->search_cache->nodes[i]; p != NULL; p = p->next)
{
  -
  -                            (*n->search_cache->display)(r, n->search_cache, p->payload);
  +                    if (n) {
  +                        for (i=0; i < n->search_cache->size; ++i) {
  +                            for (p = n->search_cache->nodes[i]; p != NULL; p = p->next)
{
  +    
  +                                (*n->search_cache->display)(r, n->search_cache,
p->payload);
  +                            }
                           }
                       }
                       ap_rputs("</table>\n</p>\n", r);
  @@ -664,10 +666,12 @@
                                "<td><font size='-1' face='Arial,Helvetica' color='#ffffff'><b>Result</b></font></td>"
                                "</tr>\n", r
                               );
  -                    for (i=0; i < n->compare_cache->size; ++i) {
  -                        for (p = n->compare_cache->nodes[i]; p != NULL; p = p->next)
{
  -
  -                            (*n->compare_cache->display)(r, n->compare_cache,
p->payload);
  +                    if (n) {
  +                        for (i=0; i < n->compare_cache->size; ++i) {
  +                            for (p = n->compare_cache->nodes[i]; p != NULL; p = p->next)
{
  +    
  +                                (*n->compare_cache->display)(r, n->compare_cache,
p->payload);
  +                            }
                           }
                       }
                       ap_rputs("</table>\n</p>\n", r);
  @@ -680,10 +684,12 @@
                                "<td><font size='-1' face='Arial,Helvetica' color='#ffffff'><b>Actual
DN</b></font></td>"
                                "</tr>\n", r
                               );
  -                    for (i=0; i < n->dn_compare_cache->size; ++i) {
  -                        for (p = n->dn_compare_cache->nodes[i]; p != NULL; p = p->next)
{
  -
  -                            (*n->dn_compare_cache->display)(r, n->dn_compare_cache,
p->payload);
  +                    if (n) {
  +                        for (i=0; i < n->dn_compare_cache->size; ++i) {
  +                            for (p = n->dn_compare_cache->nodes[i]; p != NULL; p
= p->next) {
  +    
  +                                (*n->dn_compare_cache->display)(r, n->dn_compare_cache,
p->payload);
  +                            }
                           }
                       }
                       ap_rputs("</table>\n</p>\n", r);
  
  
  

Mime
View raw message