Diff for /servers/slapd/operational.c between versions 1.13 and 1.14

version 1.13, 2003/04/05 01:35:17 version 1.14, 2003/04/16 17:49:00
Line 43  Attribute * Line 43  Attribute *
 slap_operational_hasSubordinate( int hs )  slap_operational_hasSubordinate( int hs )
 {  {
         Attribute       *a;          Attribute       *a;
         char            *val;          struct berval   val;
         ber_len_t       len;  
   
         if ( hs ) {          if ( hs ) {
                 val = "TRUE";                  val = slap_true_bv;
                 len = sizeof( "TRUE" ) - 1;  
   
         } else {          } else {
                 val = "FALSE";                  val = slap_false_bv;
                 len = sizeof( "FALSE" ) - 1;  
   
         }          }
   
         a = ch_malloc( sizeof( Attribute ) );          a = ch_malloc( sizeof( Attribute ) );
         a->a_desc = slap_schema.si_ad_hasSubordinates;          a->a_desc = slap_schema.si_ad_hasSubordinates;
         a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );          a->a_vals = ch_malloc( 2 * sizeof( struct berval ) );
   
         ber_str2bv( val, len, 1, a->a_vals );          ber_dupbv( &a->a_vals[0], &val );
         a->a_vals[1].bv_val = NULL;          a->a_vals[1].bv_val = NULL;
   
         a->a_nvals = a->a_vals;          a->a_nvals = a->a_vals;

Removed from v.1.13  
changed lines
  Added in v.1.14


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