From 06600b9a1dc7c0ff496bb89bececc7278261aea7 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Fri, 26 Aug 2005 10:46:56 +0000 Subject: [PATCH] fix slapi_sdn_isempty() logic --- servers/slapd/slapi/slapi_dn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.5