From: Luke Howard Date: Fri, 26 Aug 2005 10:46:56 +0000 (+0000) Subject: fix slapi_sdn_isempty() logic X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~564 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06600b9a1dc7c0ff496bb89bececc7278261aea7;p=openldap fix slapi_sdn_isempty() logic --- diff --git a/servers/slapd/slapi/slapi_dn.c b/servers/slapd/slapi/slapi_dn.c index 68dde615bd..fcee2979fe 100644 --- a/servers/slapd/slapi/slapi_dn.c +++ b/servers/slapd/slapi/slapi_dn.c @@ -267,7 +267,7 @@ int slapi_sdn_compare( const Slapi_DN *sdn1, const Slapi_DN *sdn2 ) int slapi_sdn_isempty( const Slapi_DN *sdn) { - return ( BER_BVISEMPTY( &sdn->dn ) ); + return ( BER_BVISEMPTY( &sdn->dn ) && BER_BVISEMPTY( &sdn->ndn ) ); } int slapi_sdn_issuffix( const Slapi_DN *sdn, const Slapi_DN *suffix_sdn )