]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse: Fix transition between 2 sections with the same name
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 30 Nov 2018 12:50:47 +0000 (13:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 1 Dec 2018 16:20:36 +0000 (17:20 +0100)
commit7805e2bc1faf04169866c801087fd794535ecbb2
tree0995cf38b3f07e86fca696a78fcf365edeb06707
parent2442f68dd32809571b6eee4242a8e8bb93dabd0a
BUG/MINOR: cfgparse: Fix transition between 2 sections with the same name

When a section's parser is registered, it can also define a post section
callback, called at the end of the section parsing. But when 2 sections with the
same name followed each other, the transition between them was missed. This
induced 2 bugs. First, the call to the post section callback was skipped. Then,
the parsing of the second section was mixed with the first one.

This patch must be backported in 1.8.
src/cfgparse.c