Commit
c81044a8b moved the call for srv_settings_cpy() from
_srv_parse_init() to parse_server(), but in doing so, it will use 1 as
the last argument if the new server is a server template. This is,
however, wrong, srv_settings_cpy() expect 1 if the source is a
server template, not the destination. Doing that will lead to an
uninitialized server, if there were settings to copy from another
server.
This fixes using server templates with default-server.
if (newsrv != from) {
/* This will copy <from> settings or init them if NULL. */
- srv_settings_cpy(newsrv, from, !!(parse_flags & SRV_PARSE_TEMPLATE));
+ srv_settings_cpy(newsrv, from, 0);
}
if (!newsrv->conf.file) // note: do it only once for default-server