From: Kurt Zeilenga Date: Fri, 4 Feb 2000 17:49:32 +0000 (+0000) Subject: ITS#439: Fix logic error X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3199 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=86cedc6ac7f209be78173e0969fb799de9ab7c7d;p=openldap ITS#439: Fix logic error --- diff --git a/servers/slapd/back-ldbm/tools.c b/servers/slapd/back-ldbm/tools.c index 0f26402260..03821ebf44 100644 --- a/servers/slapd/back-ldbm/tools.c +++ b/servers/slapd/back-ldbm/tools.c @@ -217,7 +217,7 @@ int ldbm_tool_index_attr( at_cn = at_canonical_name( at ); - if( at_cn ) { + if( at_cn == NULL ) { Debug( LDAP_DEBUG_ANY, "<= index_attr NULL (attribute type %s (%s) has no canonical name)\n", at->sat_oid, type, 0 ); @@ -227,7 +227,7 @@ int ldbm_tool_index_attr( attr_normalize( type ); at_cn = at_canonical_name( type ); - if( at_cn ) { + if( at_cn == NULL ) { Debug( LDAP_DEBUG_ANY, "<= index_attr NULL (attribute type %s has no canonical name)\n", type, 0, 0 );