char *logformat_string; /* log format string */
char *uniqueid_format_string; /* unique-id format string */
struct {
- const char *file; /* file where the section appears */
+ char *file; /* file where the section appears */
int line; /* line where the section appears */
struct eb32_node id; /* place in the tree of used IDs */
struct eb_root used_listener_id;/* list of listener IDs in use */
curpeers->next = peers;
peers = curpeers;
- curpeers->conf.file = file;
+ curpeers->conf.file = strdup(file);
curpeers->conf.line = linenum;
curpeers->last_change = now.tv_sec;
curpeers->id = strdup(args[1]);
newpeer->next = curpeers->remote;
curpeers->remote = newpeer;
newpeer->peers = curpeers;
- newpeer->conf.file = file;
+ newpeer->conf.file = strdup(file);
newpeer->conf.line = linenum;
newpeer->last_change = now.tv_sec;
init_new_proxy(curproxy);
curproxy->next = proxy;
proxy = curproxy;
- curproxy->conf.file = file;
+ curproxy->conf.file = strdup(file);
curproxy->conf.line = linenum;
curproxy->last_change = now.tv_sec;
curproxy->id = strdup(args[1]);
newsrv->next = curproxy->srv;
curproxy->srv = newsrv;
newsrv->proxy = curproxy;
- newsrv->conf.file = file;
+ newsrv->conf.file = strdup(file);
newsrv->conf.line = linenum;
LIST_INIT(&newsrv->actconns);