Diff for /servers/slapd/root_dse.c between versions 1.49 and 1.50

version 1.49, 2001/12/25 18:48:26 version 1.50, 2001/12/26 15:24:18
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.48 2001/12/21 03:44:35 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/root_dse.c,v 1.49 2001/12/25 18:48:26 kurt Exp $ */
 /* root_dse.c - Provides the ROOT DSA-Specific Entry  /* root_dse.c - Provides the ROOT DSA-Specific Entry
  *   *
  * Copyright 1999-2000 The OpenLDAP Foundation.   * Copyright 1999-2000 The OpenLDAP Foundation.
Line 68  root_dse_info( Line 68  root_dse_info(
         e->e_attrs = NULL;          e->e_attrs = NULL;
         e->e_dn = ch_strdup( LDAP_ROOT_DSE );          e->e_dn = ch_strdup( LDAP_ROOT_DSE );
         e->e_ndn = ch_strdup( LDAP_ROOT_DSE );          e->e_ndn = ch_strdup( LDAP_ROOT_DSE );
         (void) dn_normalize( e->e_ndn );          /* the DN is an empty string so no normalization needed */
         e->e_private = NULL;          e->e_private = NULL;
   
         val.bv_val = "OpenLDAProotDSE";          val.bv_val = "OpenLDAProotDSE";
Line 188  int read_root_dse_file( const char *fnam Line 188  int read_root_dse_file( const char *fnam
                         entry_free( e );                          entry_free( e );
                         entry_free( usr_attr );                          entry_free( usr_attr );
                         usr_attr = NULL;                          usr_attr = NULL;
                         return EXIT_FAILURE;  
                 }  
   
                 if( dn_normalize( e->e_ndn ) == NULL ) {  
                         fprintf( stderr, "root_dse: invalid dn=\"%s\" (line=%d)\n",  
                                 e->e_dn, lineno );  
                         entry_free( e );  
                         entry_free( usr_attr );  
                         usr_attr = NULL;  
                         return EXIT_FAILURE;                          return EXIT_FAILURE;
                 }                  }
   

Removed from v.1.49  
changed lines
  Added in v.1.50


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