CLEANUP: log-forward: remove useless options2 init

It is actually not required to zero out proxy->options2 since proxy is
allocated using calloc() which already does it.
This commit is contained in:
Aurelien DARRAGON 2025-03-07 10:57:04 +01:00
parent c6e6318125
commit 8b8520305e

View File

@ -6029,7 +6029,6 @@ int cfg_parse_log_forward(const char *file, int linenum, char **args, int kwm)
px->accept = frontend_accept;
px->default_target = &syslog_applet.obj_type;
px->id = strdup(args[1]);
px->options2 = 0;
}
else if (strcmp(args[0], "maxconn") == 0) { /* maxconn */
if (warnifnotcap(cfg_log_forward, PR_CAP_FE, file, linenum, args[0], " Maybe you want 'fullconn' instead ?"))