mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s4-drepl: fixed the checking of replica_flags in the drepl server
we were incorrectly avoiding a getncchanges when WRIT_REP was not set Pair-Programmed-With: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
This commit is contained in:
parent
4d551753d6
commit
287e35f4cf
@ -337,11 +337,6 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req)
|
||||
NTSTATUS status;
|
||||
uint32_t replica_flags;
|
||||
|
||||
if ((rf1->replica_flags & DRSUAPI_DRS_WRIT_REP) == 0 &&
|
||||
state->op->extended_op == DRSUAPI_EXOP_NONE) {
|
||||
return;
|
||||
}
|
||||
|
||||
r = talloc(state, struct drsuapi_DsGetNCChanges);
|
||||
if (tevent_req_nomem(r, req)) {
|
||||
return;
|
||||
@ -389,8 +384,6 @@ static void dreplsrv_op_pull_source_get_changes_trigger(struct tevent_req *req)
|
||||
DEBUG(0,(__location__ ": Failed to construct partial attribute set : %s\n", nt_errstr(status)));
|
||||
return;
|
||||
}
|
||||
|
||||
replica_flags &= ~DRSUAPI_DRS_WRIT_REP;
|
||||
}
|
||||
|
||||
r->in.bind_handle = &drsuapi->bind_handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user