summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-15 11:47:42 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-15 18:45:42 -0700
commit9e0b1a3a1f0ea9ca1b402aa60b8ddbe9ce0c9c10 (patch)
tree5491ec43895f29a91bb0ab09d764173dc969c455
parentbc3bbae6d28c79706b83b7e3f5457674b98d4a74 (diff)
downloadsamba-9e0b1a3a1f0ea9ca1b402aa60b8ddbe9ce0c9c10.tar.gz
samba-9e0b1a3a1f0ea9ca1b402aa60b8ddbe9ce0c9c10.tar.xz
samba-9e0b1a3a1f0ea9ca1b402aa60b8ddbe9ce0c9c10.zip
s4-drs: filter based on local_usn
The getncchanges uSN is in our local space, so we must compare it to the local_usn in replPropertyMetaData
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index 165e485d45..a05ddb9a5d 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -86,7 +86,7 @@ static WERROR get_nc_changes_build_object(struct drsuapi_DsReplicaObjectListItem
obj->meta_data_ctr->meta_data = talloc_array(obj, struct drsuapi_DsReplicaMetaData, md.ctr.ctr1.count);
for (n=i=0; i<md.ctr.ctr1.count; i++) {
- if (md.ctr.ctr1.array[i].originating_usn < highest_usn) continue;
+ if (md.ctr.ctr1.array[i].local_usn < highest_usn) continue;
obj->meta_data_ctr->meta_data[n].originating_change_time = md.ctr.ctr1.array[i].originating_change_time;
obj->meta_data_ctr->meta_data[n].version = md.ctr.ctr1.array[i].version;
obj->meta_data_ctr->meta_data[n].originating_invocation_id = md.ctr.ctr1.array[i].originating_invocation_id;