Diff for /servers/slapd/root_dse.c between versions 1.113.2.3 and 1.119

version 1.113.2.3, 2006/05/15 17:04:41 version 1.119, 2006/08/28 23:43:24
Line 1 Line 1
 /* root_dse.c - Provides the Root DSA-Specific Entry */  /* root_dse.c - Provides the Root DSA-Specific Entry */
 /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.113.2.2 2006/04/18 17:33:08 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.118 2006/08/25 18:05:14 kurt Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1999-2006 The OpenLDAP Foundation.   * Copyright 1999-2006 The OpenLDAP Foundation.
Line 35  static struct berval builtin_supportedFe Line 35  static struct berval builtin_supportedFe
         BER_BVC(LDAP_FEATURE_ABSOLUTE_FILTERS),         /* (&) and (|) search filters */          BER_BVC(LDAP_FEATURE_ABSOLUTE_FILTERS),         /* (&) and (|) search filters */
         BER_BVC(LDAP_FEATURE_LANGUAGE_TAG_OPTIONS),     /* Language Tag Options */          BER_BVC(LDAP_FEATURE_LANGUAGE_TAG_OPTIONS),     /* Language Tag Options */
         BER_BVC(LDAP_FEATURE_LANGUAGE_RANGE_OPTIONS),   /* Language Range Options */          BER_BVC(LDAP_FEATURE_LANGUAGE_RANGE_OPTIONS),   /* Language Range Options */
 #ifdef LDAP_FEATURE_SUBORDINATE_SCOPE  #ifdef LDAP_DEVEL
         BER_BVC(LDAP_FEATURE_SUBORDINATE_SCOPE),        /* "children" search scope */          BER_BVC(LDAP_FEATURE_SUBORDINATE_SCOPE),        /* "children" search scope */
 #endif  #endif
         BER_BVNULL          BER_BVNULL
Line 213  root_dse_info( Line 213  root_dse_info(
         AttributeDescription *ad_ref          AttributeDescription *ad_ref
                 = slap_schema.si_ad_ref;                  = slap_schema.si_ad_ref;
   
         e = (Entry *) SLAP_CALLOC( 1, sizeof(Entry) );          e = entry_alloc();
         if( e == NULL ) {          if( e == NULL ) {
                 Debug( LDAP_DEBUG_ANY,                  Debug( LDAP_DEBUG_ANY,
                         "root_dse_info: SLAP_CALLOC failed", 0, 0, 0 );                          "root_dse_info: entry_alloc failed", 0, 0, 0 );
                 return LDAP_OTHER;                  return LDAP_OTHER;
         }          }
   
Line 322  fail: Line 322  fail:
                  * clients.                   * clients.
                  */                   */
         for ( i=LDAP_VERSION3; i<=LDAP_VERSION_MAX; i++ ) {          for ( i=LDAP_VERSION3; i<=LDAP_VERSION_MAX; i++ ) {
                 char buf[BUFSIZ];                  char buf[sizeof("255")];
                 snprintf(buf, sizeof buf, "%d", i);                  snprintf(buf, sizeof buf, "%d", i);
                 val.bv_val = buf;                  val.bv_val = buf;
                 val.bv_len = strlen( val.bv_val );                  val.bv_len = strlen( val.bv_val );
Line 395  int read_root_dse_file( const char *fnam Line 395  int read_root_dse_file( const char *fnam
                 return EXIT_FAILURE;                  return EXIT_FAILURE;
         }          }
   
         usr_attr = (Entry *) SLAP_CALLOC( 1, sizeof(Entry) );          usr_attr = entry_alloc();
         if( usr_attr == NULL ) {          if( usr_attr == NULL ) {
                 Debug( LDAP_DEBUG_ANY,                  Debug( LDAP_DEBUG_ANY,
                         "read_root_dse_file: SLAP_CALLOC failed", 0, 0, 0 );                          "read_root_dse_file: entry_alloc failed", 0, 0, 0 );
                 ldif_close( fp );                  ldif_close( fp );
                 return LDAP_OTHER;                  return LDAP_OTHER;
         }          }

Removed from v.1.113.2.3  
changed lines
  Added in v.1.119


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