mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
ITS#6901 fix filter with zero-length values
This commit is contained in:
parent
737f220dda
commit
cbb6fe15b9
1 changed files with 2 additions and 0 deletions
|
|
@ -963,6 +963,8 @@ build_filter(
|
|||
int len;
|
||||
|
||||
ldap_bv2escaped_filter_value_x( &b[i], &bv, 1, ctx );
|
||||
if (!b[i].bv_len)
|
||||
bv.bv_val = b[i].bv_val;
|
||||
len = snprintf( kp, ks, "(%s=%s)", ad->ad_cname.bv_val, bv.bv_val );
|
||||
assert( len >= 0 && len < ks );
|
||||
kp += len;
|
||||
|
|
|
|||
Loading…
Reference in a new issue