From: Ralph Boehme Date: Mon, 4 Nov 2019 16:49:47 +0000 (+0100) Subject: s3:lib: add missing TALLOC_CTX parameter in call to lp_homedir_map() X-Git-Tag: ldb-2.1.0~546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=330f4ac1ca6b04bd86f50489227f9d4b88d03949;p=thirdparty%2Fsamba.git s3:lib: add missing TALLOC_CTX parameter in call to lp_homedir_map() This seems to be dead (at least dying) code, is WITH_NISPLUS_HOME ever defined? Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/lib/util.c b/source3/lib/util.c index 8bafcbb83d7..ec2ff3c09b5 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -632,7 +632,7 @@ char *automount_lookup(TALLOC_CTX *ctx, const char *user_name) { char *value = NULL; - char *nis_map = (char *)lp_homedir_map(); + char *nis_map = (char *)lp_homedir_map(talloc_tos()); char buffer[NIS_MAXATTRVAL + 1]; nis_result *result;