]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stktable: fix potential build issue in smp_to_stkey (2nd try)
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Jan 2025 08:43:51 +0000 (09:43 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 15 Jan 2025 13:04:31 +0000 (14:04 +0100)
commit0fb8807820bfaac76dd08f2abeac6bbc9cb67bb1
tree4d51370f8bde45c411ffcaa96669668c00281737
parent91578212d7cef7405f3631db43a086ac9f9ca162
MINOR: stktable: fix potential build issue in smp_to_stkey (2nd try)

As discussed in GH #2838, the previous fix f399dbf
("MINOR: stktable: fix potential build issue in smp_to_stkey") which
attempted to remove conversion ambiguity and prevent build warning proved
to be insufficient.

This time, we implement Willy's suggestion, which is to use an union to
perform the conversion.

Hopefully this should fix GH #2838. If that's the case (and only in that
case), then this patch may be backported with f399dbf (else the patch
won't apply) anywhere b59d1fd ("BUG/MINOR: stktable: fix big-endian
compatiblity in smp_to_stkey()") was backported.
src/stick_table.c