BUG/MINOR: peers: fix data_type bit computation more than 32 data_types
authorEmeric Brun <ebrun@haproxy.com>
Thu, 1 Jul 2021 16:54:05 +0000 (18:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Jul 2021 05:24:42 +0000 (07:24 +0200)
commit08b0f6780c45099b8d03bfd9e398d3f51519e667
treeedfb5e9033cae112e4bf10b41138135e565a390d
parent01928ae56b0296e5312eca195a4e155d6e8d79d0
BUG/MINOR: peers: fix data_type bit computation more than 32 data_types

This patch fixes the computation of the bit of the current data_type
in some part of code of peer protocol where the computation is limited
to 32bits whereas the bitfield of data_types can support 64bits.

Without this patch it could result in bugs when we will define more
than 32 data_types.

Backport is useless because there is currently less than 32 data_types
src/peers.c