mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
set "matched" as appropriate (ITS#3942)
This commit is contained in:
parent
88e89bf4e7
commit
ecd99b83dd
@ -394,6 +394,15 @@ fail:;
|
||||
BER_BVZERO( &rs->sr_ref[ cnt ] );
|
||||
}
|
||||
|
||||
if ( match.bv_val != NULL ) {
|
||||
if ( match.bv_val[ 0 ] == '\0' ) {
|
||||
LDAP_FREE( match.bv_val );
|
||||
BER_BVZERO( &match );
|
||||
} else {
|
||||
match.bv_len = strlen( match.bv_val );
|
||||
}
|
||||
}
|
||||
|
||||
/* cleanup */
|
||||
if ( references ) {
|
||||
ldap_value_free( references );
|
||||
|
Loading…
Reference in New Issue
Block a user