]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: startup: hap_register_feature() fix for partial feature name
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 17 Feb 2025 13:38:49 +0000 (14:38 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 17 Feb 2025 13:56:09 +0000 (14:56 +0100)
commitab2fa95bddd95696c045cf7bcf4164e61df5d04f
treefb3396e7eb6474e2b9a24dd33d5b48001cbbf557
parent7268e9c2495020d4d9d6feca086fc1584954d792
BUG/MINOR: startup: hap_register_feature() fix for partial feature name

In patch 2fe4cbd8e ("MINOR: startup: allow hap_register_feature() to
enable a feature in the list"), the ability to overwrite a '-' in the
feature list was added. However the code was not tokenizing correctly
the string, and partial feature name found in the name could result in
having the same feature name multiple time.

This patch rewrites the lookup of the string by tokenizing it correctly.
src/haproxy.c