]> git.sur5r.net Git - openldap/commitdiff
fix slapi_sdn_isempty() logic
authorLuke Howard <lukeh@openldap.org>
Fri, 26 Aug 2005 10:46:56 +0000 (10:46 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 26 Aug 2005 10:46:56 +0000 (10:46 +0000)
servers/slapd/slapi/slapi_dn.c

index 68dde615bd7e36cda65c2625a81c6265e2b02d91..fcee2979fe453d7fb11b4b0e94c650fade626a97 100644 (file)
@@ -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 )