From: William Lallemand Date: Wed, 12 Feb 2025 11:29:48 +0000 (+0100) Subject: CLEANUP: mworker: "program" section does not have a post_section_parser anymore X-Git-Tag: v3.2-dev6~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c2039b5b8fecfd3019be35e4ae7b549ead895ee;p=thirdparty%2Fhaproxy.git CLEANUP: mworker: "program" section does not have a post_section_parser anymore The "program" section does not have a post_section_parser anymore so no need to make an exception for it. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index cbd006bb7..bf8bd14e8 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2576,8 +2576,8 @@ next_line: if (pcs && pcs->post_section_parser) { int status; - /* don't call post_section_parser in MODE_DISCOVERY, except program section */ - if ((global.mode & MODE_DISCOVERY) && (strcmp(pcs->section_name, "program") != 0)) + /* don't call post_section_parser in MODE_DISCOVERY */ + if (global.mode & MODE_DISCOVERY) goto section_parser; status = pcs->post_section_parser();