mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s4-pydrs: validate the DsGetNCChanges response
check that object_count matches up with first_object
This commit is contained in:
parent
e59bf5efb5
commit
cc5e231355
@ -167,6 +167,8 @@ class drs_Replicate:
|
||||
|
||||
while True:
|
||||
(level, ctr) = self.drs.DsGetNCChanges(self.drs_handle, req_level, req)
|
||||
if ctr.first_object == None and ctr.object_count != 0:
|
||||
raise RuntimeError("DsGetNCChanges: NULL first_object with object_count=%u" % (ctr.object_count))
|
||||
self.net.replicate_chunk(self.replication_state, level, ctr, schema=schema)
|
||||
if ctr.more_data == 0:
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user