From: David Mulder Date: Wed, 26 Oct 2022 18:37:01 +0000 (-0600) Subject: winbind: Fix user gpupdate called with NULL smb.conf X-Git-Tag: talloc-2.4.0~646 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1f53fc8be3d7930efb2484bc7c2a41ac4a95df;p=thirdparty%2Fsamba.git winbind: Fix user gpupdate called with NULL smb.conf Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd_gpupdate.c b/source3/winbindd/winbindd_gpupdate.c index 475569ee9b4..6f294c1d030 100644 --- a/source3/winbindd/winbindd_gpupdate.c +++ b/source3/winbindd/winbindd_gpupdate.c @@ -127,6 +127,9 @@ void gpupdate_user_init(const char *user) loadparm_init_s3(NULL, loadparm_s3_helpers()); const char *const *gpupdate_cmd = lpcfg_gpo_update_command(lp_ctx); const char *smbconf = lpcfg_configfile(lp_ctx); + if (smbconf == NULL) { + smbconf = lp_default_path(); + } if (ctx == NULL) { DBG_ERR("talloc_new failed\n");