Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG/MINOR: pattern: do not leave a leading comma on "set" error messages
Commit 4f2493f ("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 911f4d9 ("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. (cherry picked from commit 9f8d9c9) Signed-off-by: Willy Tarreau <[email protected]> (cherry picked from commit 6cae9b3) Signed-off-by: Willy Tarreau <[email protected]>
- Loading branch information