summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl/drepl_out_helpers.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2016-06-07 16:41:15 +1200
committerAndrew Bartlett <abartlet@samba.org>2016-06-07 14:33:38 +0200
commit1a87c9b5994662de8bcd7c080dafb792dedb9f46 (patch)
tree28992a55b2d04b6966f885b68d5c9210e98abb34 /source4/dsdb/repl/drepl_out_helpers.c
parentc4afb1d3bd82018e6b29f1018218c36c12f95a82 (diff)
downloadsamba-1a87c9b5994662de8bcd7c080dafb792dedb9f46.tar.gz
repl: Avoid use-after-free when working with the working_schema
The original schema must live as long as the working_schema as the working_schema starts as a shallow-copy of schema. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> BUG: https://bugzilla.samba.org/show_bug.cgi?id=11953 Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Jun 7 14:33:39 CEST 2016 on sn-devel-144
Diffstat (limited to 'source4/dsdb/repl/drepl_out_helpers.c')
-rw-r--r--source4/dsdb/repl/drepl_out_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/repl/drepl_out_helpers.c b/source4/dsdb/repl/drepl_out_helpers.c
index 6493c1ea498..64816ad2725 100644
--- a/source4/dsdb/repl/drepl_out_helpers.c
+++ b/source4/dsdb/repl/drepl_out_helpers.c
@@ -709,7 +709,7 @@ static void dreplsrv_op_pull_source_apply_changes_trigger(struct tevent_req *req
return;
}
- schema = dsdb_get_schema(service->samdb, NULL);
+ schema = dsdb_get_schema(service->samdb, state);
if (!schema) {
DEBUG(0,(__location__ ": Schema is not loaded yet!\n"));
tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);