mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-10 17:03:09 -05:00
ITS#9551 Handle empty DN in extended filters
This commit is contained in:
parent
07e79471f9
commit
b0b0fc8c67
1 changed files with 6 additions and 2 deletions
|
|
@ -839,7 +839,9 @@ dnRelativeMatch(
|
|||
match = memcmp( value->bv_val, asserted->bv_val,
|
||||
value->bv_len );
|
||||
} else {
|
||||
if( DN_SEPARATOR(
|
||||
if ( BER_BVISEMPTY( asserted ) ) {
|
||||
match = 0;
|
||||
} else if ( DN_SEPARATOR(
|
||||
value->bv_val[value->bv_len - asserted->bv_len - 1] ))
|
||||
{
|
||||
match = memcmp(
|
||||
|
|
@ -865,7 +867,9 @@ dnRelativeMatch(
|
|||
if( asserted->bv_len >= value->bv_len ) {
|
||||
match = -1;
|
||||
} else {
|
||||
if( DN_SEPARATOR(
|
||||
if ( BER_BVISEMPTY( asserted ) ) {
|
||||
match = 0;
|
||||
} else if ( DN_SEPARATOR(
|
||||
value->bv_val[value->bv_len - asserted->bv_len - 1] ))
|
||||
{
|
||||
match = memcmp(
|
||||
|
|
|
|||
Loading…
Reference in a new issue