mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix filter generation (back-ldap uses string form)
This commit is contained in:
parent
62d4ae9058
commit
f0ee55c9df
@ -1660,12 +1660,12 @@ syncrepl_entry(
|
||||
ava.aa_value = *syncUUID;
|
||||
op->ors_filter = &f;
|
||||
|
||||
op->ors_filterstr.bv_len = STRLENOF( "(entryUUID=)" ) + syncUUID->bv_len;
|
||||
op->ors_filterstr.bv_len = STRLENOF( "(entryUUID=)" ) + syncUUID_strrep.bv_len;
|
||||
op->ors_filterstr.bv_val = (char *) slap_sl_malloc(
|
||||
op->ors_filterstr.bv_len + 1, op->o_tmpmemctx );
|
||||
AC_MEMCPY( op->ors_filterstr.bv_val, "(entryUUID=", STRLENOF( "(entryUUID=" ) );
|
||||
AC_MEMCPY( &op->ors_filterstr.bv_val[STRLENOF( "(entryUUID=" )],
|
||||
syncUUID->bv_val, syncUUID->bv_len );
|
||||
syncUUID_strrep.bv_val, syncUUID_strrep.bv_len );
|
||||
op->ors_filterstr.bv_val[op->ors_filterstr.bv_len - 1] = ')';
|
||||
op->ors_filterstr.bv_val[op->ors_filterstr.bv_len] = '\0';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user