]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: config: Report the warning when invalid large buffer size is set
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Mar 2026 17:50:36 +0000 (18:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Mar 2026 13:02:42 +0000 (14:02 +0100)
When an invalid large buffer size was found in the configuration, a warning
was emitted but it was not reported via the error code. It is now fixed.

src/cfgparse.c

index 2b415db0395266da192775f71dfdac90e05512f2..0969fe014408b21e5849c53c55c29d2731c87a00 100644 (file)
@@ -2319,6 +2319,7 @@ int check_config_validity()
                                   "Please fix either value to remove this warning.\n",
                                   global.tune.bufsize_large, global.tune.bufsize);
                        global.tune.bufsize_large = 0;
+                       err_code |= ERR_WARN;
                }
        }