From: Andre Noll Date: Wed, 24 Oct 2007 12:00:30 +0000 (+0200) Subject: Fix a use-after-free bug in para_server. X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f66b1f1f7ae5727d677d5d6def0e7a1c1d85f715 Fix a use-after-free bug in para_server. This bug bites on SIGHUP if a config file was specified at the command line. --- diff --git a/server.c b/server.c index e39354e7..b2242e07 100644 --- a/server.c +++ b/server.c @@ -216,7 +216,7 @@ static void parse_config(int override) char *cf; if (conf.config_file_given) - cf = conf.config_file_arg; + cf = para_strdup(conf.config_file_arg); else cf = make_message("%s/.paraslash/server.conf", home); free(user_list_file);