summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-13 19:41:43 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-13 19:41:43 +0100
commit195bda569e541a49ab3406deca8c8b864ec327d4 (patch)
tree5ccc2c9a7359171354cea17e0bbf5836391139e3 /source4
parent3598409951c223958765a52359423cd8237919b6 (diff)
downloadsamba-195bda569e541a49ab3406deca8c8b864ec327d4.tar.gz
samba-195bda569e541a49ab3406deca8c8b864ec327d4.tar.bz2
samba-195bda569e541a49ab3406deca8c8b864ec327d4.zip
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.
Diffstat (limited to 'source4')
-rw-r--r--source4/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
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;
}