BUG/MEDIUM: cli: Set SE_FL_EOI flag for '_getsocks' and 'quit' commands
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 7 Apr 2023 15:58:21 +0000 (17:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 11 Apr 2023 05:43:26 +0000 (07:43 +0200)
commit33af99655eed963ca2f091097566c09a96a75e7c
tree80c19528df80bf737ca990293febb345909a1bab
parent768b62857e4822e9e5135bdf23f464ec9515e29d
BUG/MEDIUM: cli: Set SE_FL_EOI flag for '_getsocks' and 'quit' commands

An applet must never set SE_FL_EOS flag without SE_FL_EOI or SE_FL_ERROR
flags. Here, SE_FL_EOI flag was missing for "quit" or "_getsocks"
commands. Indeed, these commands are terminal.

This bug triggers a BUG_ON() recently added.

This patch is related to the issue #2107. It is 2.8-specific. No backport
needed.
src/cli.c