]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: pattern: do not leave a leading comma on "set" error messages
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Sep 2024 06:55:29 +0000 (08:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Sep 2024 06:55:29 +0000 (08:55 +0200)
commit9f8d9c9e8bdef8e7b8f7d1d641987b4d0dcae988
tree3bc22aef0101e947d4b49f80c504d6695e16ebd2
parent036ab62231003e7e7072986626597682725edff8
BUG/MINOR: pattern: do not leave a leading comma on "set" error messages

Commit 4f2493f355 ("BUG/MINOR: pattern: pat_ref_set: fix UAF reported by
coverity") dropped the condition to concatenate error messages and as
such introduced a leading comma in front of all of them. Then commit
911f4d93d4 ("BUG/MINOR: pattern: pat_ref_set: return 0 if err was found")
changed the behavior to stop at the first error anyway, so all the
mechanics dedicated to the concatenation of error messages is no longer
needed and we can simply return the error as-is, without inserting any
comma.

This should be backported where the patches above are backported.
src/pattern.c