diff options
Diffstat (limited to 'accel-pptpd/logs/log_pgsql.c')
-rw-r--r-- | accel-pptpd/logs/log_pgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pptpd/logs/log_pgsql.c b/accel-pptpd/logs/log_pgsql.c index fcaa193..af67e0b 100644 --- a/accel-pptpd/logs/log_pgsql.c +++ b/accel-pptpd/logs/log_pgsql.c @@ -287,7 +287,7 @@ static void __init init(void) opt = conf_get_opt("log-pgsql", "conninfo"); if (!opt) return; - conf_conninfo = opt; + conf_conninfo = _strdup(opt); opt = conf_get_opt("log-pgsql", "connect-inteval"); if (opt && atoi(opt) > 0) @@ -295,7 +295,7 @@ static void __init init(void) opt = conf_get_opt("log-pgsql", "log-query"); if (opt) - conf_query = opt; + conf_query = _strdup(opt); else { opt = conf_get_opt("log-pgsql", "log-table"); if (!opt || strlen(opt) > 32) |