else
logsrv->maxlen = MAX_SYSLOG_LEN;
- if (logsrv->maxlen > global.max_syslog_len) {
+ if (logsrv->maxlen > global.max_syslog_len)
global.max_syslog_len = logsrv->maxlen;
- if (!init_log_buffers()) {
- Alert("parsing [%s:%d] : failed to initialize log buffers.\n", file, linenum);
- err_code |= ERR_ALERT | ERR_FATAL;
- goto out;
- }
- }
/* after the length, a format may be specified */
if (strcmp(args[arg+2], "format") == 0) {
else
logsrv->maxlen = MAX_SYSLOG_LEN;
- if (logsrv->maxlen > global.max_syslog_len) {
+ if (logsrv->maxlen > global.max_syslog_len)
global.max_syslog_len = logsrv->maxlen;
- if (!init_log_buffers()) {
- Alert("parsing [%s:%d] : failed to initialize log buffers.\n", file, linenum);
- err_code |= ERR_ALERT | ERR_FATAL;
- goto out;
- }
- }
/* after the length, a format may be specified */
if (strcmp(args[arg+2], "format") == 0) {
exit(1);
}
+ if (!init_log_buffers()) {
+ Alert("failed to initialize log buffers.\n");
+ exit(1);
+ }
+
swap_buffer = calloc(1, global.tune.bufsize);
get_http_auth_buff = calloc(1, global.tune.bufsize);
static_table_key = calloc(1, sizeof(*static_table_key));