Some options do not support "no" nor "defaults" and they're placed after
the check for their absence. However, "accept-invalid-http-request" and
"accept-invalid-http-response" still used to check for the flags that
come with these prefixes, but Coverity noticed this was dead code in
github issue #3272. Let's just drop the test.
No backport needed as it's just dead code.
}
curproxy->no_options2 &= ~val;
- curproxy->options2 &= ~val;
-
- switch (kwm) {
- case KWM_STD:
- curproxy->options2 |= val;
- break;
- case KWM_NO:
- curproxy->no_options2 |= val;
- break;
- case KWM_DEF: /* already cleared */
- break;
- }
+ curproxy->options2 |= val;
err_code |= ERR_WARN;
goto out;