From 330f4ac1ca6b04bd86f50489227f9d4b88d03949 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 4 Nov 2019 17:49:47 +0100 Subject: [PATCH] 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 --- source3/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3