mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
31707cdeaa
The first search in each round of VLV performs the search then saves the results in the form of an array of GUIDs, which subsequent calls refer to to get different ranges from the same search. These subsequent calls make an individual search for each GUID. If the original search had the show_deleted control, the array may contain GUIDs for deleted items, which would not be seen on the later searches without the same control. So we save all controls except the VLV itself and the sort control (which won't affect the search for a single GUID) and reuse them on the subsequent VLV searches. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>