mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Fix -DSLAPD_SCHEMA_NOT_COMPAT syntax error in last commit
This commit is contained in:
parent
c5da0c76ce
commit
17f1024ad5
1 changed files with 11 additions and 10 deletions
|
|
@ -199,6 +199,9 @@ int ldbm_tool_index_attr(
|
|||
static DBCache *db = NULL;
|
||||
int indexmask, syntaxmask;
|
||||
char * at_cn;
|
||||
#ifndef SLAPD_SCHEMA_COMPAT
|
||||
AttributeType *at;
|
||||
#endif
|
||||
|
||||
assert( slapMode & SLAP_TOOL_MODE );
|
||||
|
||||
|
|
@ -214,19 +217,17 @@ int ldbm_tool_index_attr(
|
|||
return 0;
|
||||
}
|
||||
#else
|
||||
{
|
||||
AttributeType *at = at_find( type );
|
||||
at = at_find( type );
|
||||
|
||||
if( at == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"<= index_attr NULL (could not find attribute type %s)\n",
|
||||
type, 0, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
||||
at_cn = at_canonical_name( at );
|
||||
if( at == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"<= index_attr NULL (could not find attribute type %s)\n",
|
||||
type, 0, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
||||
at_cn = at_canonical_name( at );
|
||||
|
||||
if( at_cn ) {
|
||||
Debug( LDAP_DEBUG_ANY, "<= index_attr NULL (attribute type %s (%s) has no canonical name)\n",
|
||||
at->sat_oid, type, 0 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue