summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-03-20 09:09:58 +1300
committerJeremy Allison <jra@samba.org>2014-05-07 19:49:16 +0200
commit47ae38c4f1d4a2ae57eaba7b67404867c5bd1ea0 (patch)
tree2d71e32a49a6a5702aee4c55b5c50a0b783bdbbc
parent98dbc38efa26149442a0b9be238cc34cebfd1857 (diff)
downloadsamba-47ae38c4f1d4a2ae57eaba7b67404867c5bd1ea0.tar.gz
samba-47ae38c4f1d4a2ae57eaba7b67404867c5bd1ea0.tar.xz
samba-47ae38c4f1d4a2ae57eaba7b67404867c5bd1ea0.zip
param: setup ctx variable in loadparm globals
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--lib/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index b7afea64768..71aab15a93a 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2064,6 +2064,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
talloc_set_destructor(lp_ctx, lpcfg_destructor);
lp_ctx->bInGlobalSection = true;
lp_ctx->globals = talloc_zero(lp_ctx, struct loadparm_global);
+ /* This appears odd, but globals in s3 isn't a pointer */
+ lp_ctx->globals->ctx = lp_ctx->globals;
lp_ctx->sDefault = talloc_zero(lp_ctx, struct loadparm_service);
lp_ctx->flags = talloc_zero_array(lp_ctx, unsigned int, NUMPARAMETERS);