minor schema parsing cleanup

This commit is contained in:
Pierangelo Masarati 2005-11-19 14:57:25 +00:00
parent 5d83746abf
commit f4781b1527
3 changed files with 3 additions and 0 deletions

View File

@ -448,6 +448,7 @@ init_config_attrs(ConfigTable *ct) {
freeit = 1;
} else {
ldap_attributetype_free( at );
fprintf( stderr, "init_config_attrs: AttributeType \"%s\": %s, %s\n",
ct[i].attribute, scherr2str(code), err );
return code;

View File

@ -1207,6 +1207,7 @@ slap_schema_load( void )
code = at_add( at, 0, NULL, &err );
if ( code ) {
ldap_attributetype_free( at );
fprintf( stderr, "slap_schema_load: AttributeType "
"\"%s\": %s: \"%s\"\n",
ad_map[i].ssam_name, scherr2str(code), err );

View File

@ -280,6 +280,7 @@ parse_at(
code = at_add(at,1,sat,&err);
if ( code ) {
ldap_attributetype_free( at );
fprintf( stderr, "%s: line %d: %s: \"%s\"\n",
fname, lineno, scherr2str(code), err);
return 1;