conf: don't allow disabling clientloglimit

Don't treat zero as a special value disabling clientloglimit. It's not
useful, the amount of available memory is never unlimited.
This commit is contained in:
Miroslav Lichvar
2015-11-24 12:30:54 +01:00
parent 801830df57
commit f2b82c1e1d
2 changed files with 5 additions and 8 deletions

5
conf.c
View File

@@ -862,11 +862,6 @@ parse_clientloglimit(char *line)
if (sscanf(line, "%lu", &client_log_limit) != 1) {
command_parse_error();
}
if (client_log_limit == 0) {
/* unlimited */
client_log_limit = (unsigned long)-1;
}
}
/* ================================================== */