]> git.sur5r.net Git - openldap/commitdiff
plug config mem leak
authorKurt Zeilenga <kurt@openldap.org>
Sat, 10 Aug 2002 00:16:51 +0000 (00:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 10 Aug 2002 00:16:51 +0000 (00:16 +0000)
servers/slapd/main.c
servers/slapd/proto-slap.h

index de931e49088dd0318cf6b010e6556abb2f6b8520..8a40fe52a7ddf9fff083e68ddcb6f874490921b5 100644 (file)
@@ -405,7 +405,7 @@ int main( int argc, char **argv )
        (void) ldap_pvt_tls_set_option( NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &rc );
 #endif
 
-       if ( read_config( configfile ) != 0 ) {
+       if ( read_config( configfile, 0 ) != 0 ) {
                rc = 1;
                SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 19 );
 
index 583b09e5b1fbb6af05bbd40df8061fec4988b655..cb65f3fb925c46ddda876ade020684bb01084639 100644 (file)
@@ -280,7 +280,7 @@ LDAP_SLAPD_F (char *) get_supported_ctrl LDAP_P((int index));
 /*
  * config.c
  */
-LDAP_SLAPD_F (int) read_config LDAP_P(( const char *fname ));
+LDAP_SLAPD_F (int) read_config LDAP_P(( const char *fname, int depth ));
 LDAP_SLAPD_F (void) config_destroy LDAP_P ((void));
 
 /*