ITS#8039 cleanup

This commit is contained in:
Howard Chu 2015-01-31 12:52:56 +00:00
parent c4b43c0077
commit edf359795c

View File

@ -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;