BUG/MINOR: config: add a missing "ELIF_TAKE" test for ".elif" condition evaluator
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 06:48:09 +0000 (08:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 08:35:03 +0000 (10:35 +0200)
commitf67ff020720dc403fcf65b0b2807b27a215c42cf
treec585c746dd5379baaf85e0e7bdca3ca6de396d1c
parent6e647c94f2a7bac30a7642167601c229a309ffc3
BUG/MINOR: config: add a missing "ELIF_TAKE" test for ".elif" condition evaluator

This missing state was causing a second elif condition to be evaluated
after a first one succeeded after a .if failed. For example in the test
below the else would be executed:

     .if    0
     .elif  1
     .elif  0
     .else
     .endif

No backport is needed, this is 2.4-only.
src/cfgparse.c