mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8039 cleanup
This commit is contained in:
parent
c4b43c0077
commit
edf359795c
@ -1028,6 +1028,8 @@ syncprov_qresp( opcookie *opc, syncops *so, int mode )
|
||||
a = attr_find( opc->se->e_attrs, slap_schema.si_ad_entryUUID );
|
||||
if ( a )
|
||||
ri->ri_uuid = a->a_nvals[0];
|
||||
else
|
||||
ri->ri_uuid.bv_len = 0;
|
||||
if ( csn.bv_len ) {
|
||||
ri->ri_csn.bv_val = (char *)(ri + 1);
|
||||
ri->ri_csn.bv_len = csn.bv_len;
|
||||
@ -1053,6 +1055,8 @@ syncprov_qresp( opcookie *opc, syncops *so, int mode )
|
||||
ri->ri_csn.bv_val = ri->ri_uuid.bv_val + ri->ri_uuid.bv_len;
|
||||
memcpy( ri->ri_csn.bv_val, csn.bv_val, csn.bv_len );
|
||||
ri->ri_csn.bv_val[csn.bv_len] = '\0';
|
||||
} else {
|
||||
ri->ri_csn.bv_val = NULL;
|
||||
}
|
||||
}
|
||||
ri->ri_list = &opc->ssres;
|
||||
|
Loading…
Reference in New Issue
Block a user