s3/loadparm: allocate a fresh sDefault object per lp_ctx
authorRalph Boehme <slow@samba.org>
Wed, 22 Nov 2017 10:49:57 +0000 (11:49 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 27 Nov 2017 21:08:17 +0000 (22:08 +0100)
commit1fc103547023aa1c880713e5b65ec164acb58b54
treeea7a25006686b9a6d1a19a606f6f94e549b3feb2
parent81e9ae1368c34bf59d0a100c9f03ea67d64f2979
s3/loadparm: allocate a fresh sDefault object per lp_ctx

This is in preperation of preventing direct access to sDefault in all
places that currently modify it.

As currently s3/loadparm is afaict not accessing lp_ctx->sDefault, but
changes sDefault indirectly through lp_parm_ptr() this change is just a
safety measure to prevent future breakage.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13051

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/param/loadparm.c