]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: auth: Fix a leak on error path when parsing user's groups
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 15:52:17 +0000 (16:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 15:55:37 +0000 (16:55 +0100)
commita7f513af9187444680e3e054e0a13f818aed3307
tree056eaa1535b52650c23b1ed50de01cc09daeb2be
parenta1e14d2a8272511c29d9225a61c74dc89847287d
BUG/MINOR: auth: Fix a leak on error path when parsing user's groups

In a userlist section, when a user is parsed, if a specified group is not
found, an error is reported. In this case we must take care to release the
alredy built groups list.

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

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