dsdb: Make a shallow copy of ldb_parse_tree in operational module
commit003162559848ce45d4f5bd3fb66642960538120f
authorAndrew Bartlett <abartlet@samba.org>
Wed, 2 Aug 2023 02:13:00 +0000 (2 14:13 +1200)
committerStefan Metzmacher <metze@samba.org>
Wed, 2 Aug 2023 12:10:19 +0000 (2 12:10 +0000)
treeac07ebbded9a329e577f3d12863fe811f1529685
parent3b51091c20a3c807932bcc986ebb8a676e0ffe6a
dsdb: Make a shallow copy of ldb_parse_tree in operational module

We should not be making modifications to caller memory.  In
particular, this causes problems for logging of requests if the
original request becomes modified.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Aug  2 12:10:20 UTC 2023 on atb-devel-224
source4/dsdb/samdb/ldb_modules/operational.c