Diff for /servers/slapd/cr.c between versions 1.5 and 1.6

version 1.5, 2003/01/20 19:21:17 version 1.6, 2003/02/05 21:06:22
Line 1 Line 1
 /* cr.c - content rule routines */  /* cr.c - content rule routines */
 /* $OpenLDAP: pkg/ldap/servers/slapd/cr.c,v 1.4 2003/01/03 19:20:54 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/cr.c,v 1.5 2003/01/20 19:21:17 kurt Exp $ */
 /*  /*
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 78  cr_bvfind( struct berval *crname ) Line 78  cr_bvfind( struct berval *crname )
         return( NULL );          return( NULL );
 }  }
   
   static int
   cr_destroy_one( ContentRule *c )
   {
           assert( c != NULL );
   
           if (c->scr_auxiliaries) ldap_memfree(c->scr_auxiliaries);
           if (c->scr_required) ldap_memfree(c->scr_required);
           if (c->scr_allowed) ldap_memfree(c->scr_allowed);
           if (c->scr_precluded) ldap_memfree(c->scr_precluded);
           ldap_contentrule_free((LDAPContentRule *)c);
   
           return 0;
   }
   
 void  void
 cr_destroy( void )  cr_destroy( void )
 {  {
Line 89  cr_destroy( void ) Line 103  cr_destroy( void )
                 c = LDAP_SLIST_FIRST(&cr_list);                  c = LDAP_SLIST_FIRST(&cr_list);
                 LDAP_SLIST_REMOVE_HEAD(&cr_list, scr_next);                  LDAP_SLIST_REMOVE_HEAD(&cr_list, scr_next);
   
                 if (c->scr_auxiliaries) ldap_memfree(c->scr_auxiliaries);                  cr_destroy_one( c );
                 if (c->scr_required) ldap_memfree(c->scr_required);  
                 if (c->scr_allowed) ldap_memfree(c->scr_allowed);  
                 if (c->scr_precluded) ldap_memfree(c->scr_precluded);  
                 ldap_contentrule_free((LDAPContentRule *)c);  
         }          }
 }  }
   

Removed from v.1.5  
changed lines
  Added in v.1.6


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org