mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix slapi_sdn_isempty() logic
This commit is contained in:
parent
e641222b10
commit
06600b9a1d
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user