CLEANUP: ssl/cli: do not loop on unknown states in "add ssl crt-list" handler
authorWilly Tarreau <w@1wt.eu>
Thu, 5 May 2022 11:50:46 +0000 (13:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit1b948ef42679afb0727eded271ca2f883f1ec638
tree17b54d20319f4064db84f3693d7bc3758d9ed041
parent4fd9b4ddf04bfddaa46dd720da91c7b025f963c4
CLEANUP: ssl/cli: do not loop on unknown states in "add ssl crt-list" handler

The io_handler in "add ssl crt_list" is built around a "while" loop that
only makes forward progress and that doesn't handle its final state as
it's not supposed to be called again once reached. This makes the code
confusing because its construct implies an infinite loop for such a
state (or any other unhandled one). Let's just remove that unneeded loop.
src/ssl_crtlist.c