repl: Avoid use-after-free when working with the working_schema
commit1a87c9b5994662de8bcd7c080dafb792dedb9f46
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 04:41:15 +0000 (7 16:41 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jun 2016 12:33:38 +0000 (7 14:33 +0200)
tree28992a55b2d04b6966f885b68d5c9210e98abb34
parentc4afb1d3bd82018e6b29f1018218c36c12f95a82
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
source4/dsdb/repl/drepl_out_helpers.c