summaryrefslogtreecommitdiff
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 11:48:13 -0700
commite44c4141fdfa07bb3bd09f28e5f093d27f170dc8 (patch)
tree63b513e26972b3c5286a015b6dc110b4b20b1305
parentae28e2f085cf92bd2b813d97288ac91970c707d7 (diff)
downloadsamba-e44c4141fdfa07bb3bd09f28e5f093d27f170dc8.tar.gz
samba-e44c4141fdfa07bb3bd09f28e5f093d27f170dc8.tar.bz2
samba-e44c4141fdfa07bb3bd09f28e5f093d27f170dc8.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;