From 8b8520305ef853ced878e080ea25078c07e03d32 Mon Sep 17 00:00:00 2001 From: Aurelien DARRAGON Date: Fri, 7 Mar 2025 10:57:04 +0100 Subject: [PATCH] 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. --- src/log.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/log.c b/src/log.c index 17a716e75..e0cb813a3 100644 --- a/src/log.c +++ b/src/log.c @@ -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 ?"))