]> git.sur5r.net Git - openldap/commitdiff
fix filter generation (back-ldap uses string form)
authorPierangelo Masarati <ando@openldap.org>
Thu, 15 Dec 2005 13:07:56 +0000 (13:07 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 15 Dec 2005 13:07:56 +0000 (13:07 +0000)
servers/slapd/syncrepl.c

index 8209e2d91cbe17e1551ff7538f02ed0111a2f7ed..837b9d03abb23c787897e7580a63bfb471fd31cb 100644 (file)
@@ -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';