diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-02-15 08:41:23 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-02-15 09:46:55 +0100 |
commit | 3c5f537302294dc5306cffed5dcd57221ac2c96d (patch) | |
tree | c3fb8559ba9f917370680396778f00158cfaa8eb /source4 | |
parent | 18926e5907ac91881fe5b8cf35193c4bc010500a (diff) | |
download | samba-3c5f537302294dc5306cffed5dcd57221ac2c96d.tar.gz samba-3c5f537302294dc5306cffed5dcd57221ac2c96d.tar.bz2 samba-3c5f537302294dc5306cffed5dcd57221ac2c96d.zip |
s4:drsuapi/getncchanges: make sure we don't process filteres objects more than once
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Feb 15 09:46:55 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 822e628f2f..b7431b6702 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -1044,7 +1044,7 @@ static WERROR getncchanges_change_master(struct drsuapi_bind_state *b_state, struct drsuapi_getncchanges_state { struct GUID *guids; uint32_t num_records; - uint32_t num_sent; + uint32_t num_processed; struct ldb_dn *ncRoot_dn; bool is_schema_nc; uint64_t min_usn; @@ -1518,7 +1518,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_ */ max_links = lpcfg_parm_int(dce_call->conn->dce_ctx->lp_ctx, NULL, "drs", "max link sync", 1500); - for (i=getnc_state->num_sent; + for (i=getnc_state->num_processed; i<getnc_state->num_records && !null_scope && (r->out.ctr->ctr6.object_count < max_objects); @@ -1614,7 +1614,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_ talloc_free(msg_dn); } - getnc_state->num_sent += r->out.ctr->ctr6.object_count; + getnc_state->num_processed = i; r->out.ctr->ctr6.nc_object_count = getnc_state->num_records; |