]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: peers: fix logical "and" when checking for local in PEER_APP_ST_STARTING
authorWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2026 12:30:45 +0000 (14:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2026 12:44:29 +0000 (14:44 +0200)
commit24914b67b723fae4519308aa9238cdb94dd3bfe2
treedfcbcea663a4569efc691a50c7550daf698910e7
parent25c8d7b09428c02a336049cfa64d7fada4135fc4
BUG/MINOR: peers: fix logical "and" when checking for local in PEER_APP_ST_STARTING

The expression to check both peer->local and appctx_is_back() uses a
bitwise '&' instead of a logical '&&'. Fortunately both values are
always either 0 or 1 so there is no impact. This can be backported to
all stable versions.
src/peers.c