s4-rpc_server/drsuapi: Avoid modification to ncRoot input variable in GetNCChanges
commita33689ad82c87500a550a003cc9b938c4111c147
authorAndrew Bartlett <abartlet@samba.org>
Tue, 27 Jun 2023 02:39:18 +0000 (27 14:39 +1200)
committerJule Anger <janger@samba.org>
Fri, 18 Aug 2023 09:17:13 +0000 (18 09:17 +0000)
treebaa12c641ce7b040c4b3dc7a00ca81d284e87a5f
parenta596e4cdb9f4e83a740befe1e7bb81cd00d38da7
s4-rpc_server/drsuapi: Avoid modification to ncRoot input variable in GetNCChanges

This tries to avoid it appearing that ncRoot is a value that can
be trusted and used internally by not updating it and instead leaving
it just as an input/echo-back value.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15401

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 548f141f11e89d335d8f9d74ab6925fa6b90fb84)
source4/rpc_server/drsuapi/getncchanges.c