]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: winbind: Fix crash when invoking winbind idmap scripts.
authorJeremy Allison <jra@samba.org>
Thu, 23 May 2019 20:33:21 +0000 (13:33 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jun 2019 08:52:28 +0000 (08:52 +0000)
commitdef08d36e5bcf277adada2ce0e8bde694733912f
tree3b08cbb4a1fff11ed1075c0912fbc0aa4f4c6e14
parent4406c829558495a226eabf5c6c64953d39dd60c4
s3: winbind: Fix crash when invoking winbind idmap scripts.

Previously the private context was caching a pointer to
a string returned from lp_XXX(). This string can change
on config file reload. Ensure the string is talloc_strup'ed
onto the owning context instead.

Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13956

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit a1f95ba5db6fc017fad35377fbf76c048f2dd8ab)
source3/winbindd/idmap_script.c
source3/winbindd/idmap_tdb2.c