syslogd: do not segfault on parse error when using default config. Closes 5762
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2cfcc9e9d7
commit
81fa999540
@ -429,7 +429,9 @@ static void parse_syslogdcfg(const char *file)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
cfgerr:
|
cfgerr:
|
||||||
bb_error_msg_and_die("error in '%s' at line %d", file, parser->lineno);
|
bb_error_msg_and_die("error in '%s' at line %d",
|
||||||
|
file ? file : "/etc/syslog.conf",
|
||||||
|
parser->lineno);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user