Diff for /servers/slapd/operational.c between versions 1.19 and 1.19.2.5

version 1.19, 2004/10/27 14:28:12 version 1.19.2.5, 2006/01/03 22:16:15
Line 1 Line 1
 /* operational.c - routines to deal with on-the-fly operational attrs */  /* operational.c - routines to deal with on-the-fly operational attrs */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 2001-2004 The OpenLDAP Foundation.   * Copyright 2001-2006 The OpenLDAP Foundation.
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 27  slap_operational_subschemaSubentry( Back Line 27  slap_operational_subschemaSubentry( Back
         Attribute       *a;          Attribute       *a;
   
         /* The backend wants to take care of it */          /* The backend wants to take care of it */
         if ( be && be!= frontendDB && be->be_schemadn.bv_val ) return NULL;          if ( be && !SLAP_FRONTEND(be) && be->be_schemadn.bv_val ) return NULL;
   
         a = ch_malloc( sizeof( Attribute ) );          a = ch_malloc( sizeof( Attribute ) );
         a->a_desc = slap_schema.si_ad_subschemaSubentry;          a->a_desc = slap_schema.si_ad_subschemaSubentry;
Line 53  slap_operational_entryDN( Entry *e ) Line 53  slap_operational_entryDN( Entry *e )
 {  {
         Attribute       *a;          Attribute       *a;
   
           assert( e != NULL );
           assert( !BER_BVISNULL( &e->e_name ) );
           assert( !BER_BVISNULL( &e->e_nname ) );
   
         a = ch_malloc( sizeof( Attribute ) );          a = ch_malloc( sizeof( Attribute ) );
         a->a_desc = slap_schema.si_ad_entryDN;          a->a_desc = slap_schema.si_ad_entryDN;
   
         a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );          a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );
         ber_dupbv( a->a_vals, &e->e_name );          ber_dupbv( &a->a_vals[ 0 ], &e->e_name );
         a->a_vals[1].bv_len = 0;          BER_BVZERO( &a->a_vals[ 1 ] );
         a->a_vals[1].bv_val = NULL;  
   
         a->a_nvals = ch_malloc( 2 * sizeof( struct berval ) );          a->a_nvals = ch_malloc( 2 * sizeof( struct berval ) );
         ber_dupbv( a->a_nvals, &e->e_nname );          ber_dupbv( &a->a_nvals[ 0 ], &e->e_nname );
         a->a_nvals[1].bv_len = 0;          BER_BVZERO( &a->a_nvals[ 1 ] );
         a->a_nvals[1].bv_val = NULL;  
   
         a->a_next = NULL;          a->a_next = NULL;
         a->a_flags = 0;          a->a_flags = 0;

Removed from v.1.19  
changed lines
  Added in v.1.19.2.5


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