]> git.sur5r.net Git - openldap/commitdiff
ITS#5506
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 20 May 2008 02:00:55 +0000 (02:00 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 20 May 2008 02:00:55 +0000 (02:00 +0000)
CHANGES
servers/slapd/overlays/syncprov.c
servers/slapd/schema_init.c

diff --git a/CHANGES b/CHANGES
index 7dac98795d61218508503a4915c7c96abbc53cf6..0dd2884db950d91a6236b68095b52432dc9c0b49 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,7 @@ OpenLDAP 2.4.10 Engineering
        Fixed slapd missing termination of integerFilter keys (ITS#5503)
        Fixed slapd-ldap entry_get() op-dependent behavior (ITS#5513)
        Fixed slapo-syncprov csn update with delta-syncrepl (ITS#5493)
+       Fixed slapo-syncprov op2.o_extra reset (ITS#5506)
 
 OpenLDAP 2.4.9 Release (2008/05/07)
        Fixed libldap to use unsigned port (ITS#5436)
index 7bc5464ae6dde0cc76f5ee4b91a0b8c8b032ed8d..01602a79fa39a0d00f85fa14c19c698a3e2fea98 100644 (file)
@@ -1224,8 +1224,11 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit )
                        }
                }
 
-               if ( fc.fscope )
+               if ( fc.fscope ) {
                        op2 = *ss->s_op;
+                       op2.o_hdr = op->o_hdr;
+                       op2.o_extra = op->o_extra;
+               }
 
                /* check if current o_req_dn is in scope and matches filter */
                if ( fc.fscope && test_filter( &op2, e, ss->s_op->ors_filter ) ==
index ab82c9df50de435893ceac41ab2c94ca60ce015e..44175b750138088e3613fe94ae549d66bd33a347 100644 (file)
@@ -2273,6 +2273,8 @@ integerFilter(
 
        keys[0].bv_len = index_intlen;
        keys[0].bv_val = slap_sl_malloc( index_intlen, ctx );
+       keys[1].bv_len = 0;
+       keys[1].bv_val = NULL;
 
        iv.bv_len = value->bv_len < index_intlen_strlen + INDEX_INTLEN_CHOP-1
                ? value->bv_len : index_intlen_strlen + INDEX_INTLEN_CHOP-1;