From: Andreas Schneider Date: Wed, 25 Oct 2023 10:15:09 +0000 (+0200) Subject: s3:param: Use the memory context we just created instead of tos X-Git-Tag: talloc-2.4.2~1102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e30c404fb7a278adfac73c623969015de499a853;p=thirdparty%2Fsamba.git s3:param: Use the memory context we just created instead of tos Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index e7f4bbe3995..0e92cdb2d7b 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -608,7 +608,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals) */ Globals.nmbd_bind_explicit_broadcast = true; - s = talloc_asprintf(talloc_tos(), "Samba %s", samba_version_string()); + s = talloc_asprintf(Globals.ctx, "Samba %s", samba_version_string()); if (s == NULL) { smb_panic("init_globals: ENOMEM"); }