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-Tag: v0.3.0~223 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=6e49c896b306838ae301df3e6ece2a6a7eb5629f;p=paraslash.git 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 c7760de1..f435104b 100644 --- a/server.c +++ b/server.c @@ -191,7 +191,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);