You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2004/11/04 23:31:44 UTC

cvs commit: httpd-2.0/modules/experimental util_ldap_cache_mgr.c

bnicholes    2004/11/04 14:31:44

  Modified:    modules/experimental Tag: APACHE_2_0_BRANCH
                        util_ldap_cache_mgr.c
  Log:
  Don't display the cache statistics if the node is empty
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.16  +18 -12    httpd-2.0/modules/experimental/Attic/util_ldap_cache_mgr.c
  
  Index: util_ldap_cache_mgr.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/Attic/util_ldap_cache_mgr.c,v
  retrieving revision 1.3.2.15
  retrieving revision 1.3.2.16
  diff -u -r1.3.2.15 -r1.3.2.16
  --- util_ldap_cache_mgr.c	13 Oct 2004 16:19:36 -0000	1.3.2.15
  +++ util_ldap_cache_mgr.c	4 Nov 2004 22:31:44 -0000	1.3.2.16
  @@ -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);