From: Remi Tricot-Le Breton Date: Tue, 1 Dec 2026 13:33:37 +0000 (+0100) Subject: BUG/MINOR: ocsp: Fix too strict parser of 'do-ocsp-request' action X-Git-Url: https://git.kaiwu.me/web/%7B@url%7D?a=commitdiff_plain;h=3d654ee8c963d041cb14f3de949727a49711877f;p=haproxy.git BUG/MINOR: ocsp: Fix too strict parser of 'do-ocsp-request' action The parsing function of the 'do-ocsp-request' action raised an error on any argument different than the expected 'reason-var' and 'status-var' ones, but it prevented any 'if' condition from being added at the end. This patch does not need to be backported. --- diff --git a/src/ssl_ocsp.c b/src/ssl_ocsp.c index f539d8bb9..3b06dc171 100644 --- a/src/ssl_ocsp.c +++ b/src/ssl_ocsp.c @@ -2166,7 +2166,7 @@ static inline void release_do_ocsp_request_action(struct act_rule *rule) /* * Parse the 'do-ocsp-request' action. - * do-ocsp-request [ status-var ] [ reason-var ] [ no-deny | deny ] + * do-ocsp-request [ status-var ] [ reason-var ] */ static enum act_parse_ret parse_do_ocsp_request(const char **args, int *orig_arg, struct proxy *px, struct act_rule *rule, char **err) @@ -2202,7 +2202,7 @@ static enum act_parse_ret parse_do_ocsp_request(const char **args, int *orig_arg if (!istlen(conf->reason_var)) goto parse_err; } else - goto parse_err; + break; ++cur_arg; }