]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config/userlist: Support one 'users' option for 'group' directive
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 15:21:20 +0000 (16:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 15:55:29 +0000 (16:55 +0100)
commita1e14d2a8272511c29d9225a61c74dc89847287d
tree73c942f1320dbad3eca70ad0824313a6b9ed96da
parent75e8c8ed330f2ad1b6b33630efebb5041af3d5e9
BUG/MINOR: config/userlist: Support one 'users' option for 'group' directive

When a group is defined in a userlist section, only one 'users' option is
expected. But it was not tested. Thus it was possible to set several options
leading to a memory leak.

It is now tested, and it is not allowed to redefine the users option.

It was reported by Coverity in #2841: CID 1587771.

This patch could be backported to all stable versions.
src/cfgparse.c