]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mworker: fix typo &= instead of & in proc list serialization
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 13 Mar 2026 16:43:19 +0000 (17:43 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 13 Mar 2026 17:38:24 +0000 (18:38 +0100)
commitcb51c8729d2abe7dda85a56c4fd95df8d8be82b9
treed99325835e7f575b932f69d4f1f8a823b61818bc
parenta390daaee4e7f01f226a9df520a558e3137b19ac
BUG/MINOR: mworker: fix typo &= instead of & in proc list serialization

In mworker_proc_list_to_env(), a typo used '&=' instead of '&' when
checking PROC_O_TYPE_WORKER in child->options. This would corrupt the
options field by clearing all bits except PROC_O_TYPE_WORKER, but since
the function is called right before the master re-execs itself during a
reload, the corruption has no actual effect: the in-memory proc_list is
discarded by the exec, and the options field is not serialized to the
environment anyway.

This should be backported to all maintained versions.
src/mworker.c