From 195bda569e541a49ab3406deca8c8b864ec327d4 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 13 Feb 2010 19:41:43 +0100 Subject: s4:loadparm.c - the logfile parameter value needs to be duplicated Otherwise the "logfile" pointer tracks all changes of "pszParmValue" which content is only temporal. This was the cause of bug #6212. --- source4/param/loadparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index cb23ceab02..0841f7dad4 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -1542,7 +1542,7 @@ static bool handle_debuglevel(struct loadparm_context *lp_ctx, static bool handle_logfile(struct loadparm_context *lp_ctx, const char *pszParmValue, char **ptr) { - logfile = pszParmValue; + logfile = strdup(pszParmValue); return true; } -- cgit