]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: conntrack: Use the right callbacks
authorPhil Sutter <phil@nwl.cc>
Fri, 26 Jul 2024 11:41:52 +0000 (13:41 +0200)
committerPhil Sutter <phil@nwl.cc>
Sat, 27 Jul 2024 17:32:57 +0000 (19:32 +0200)
commitbb2ee075d8a626f2249ef9507927fae155b24093
treee56c55c8621be73a9a1f873b1962d29b64e6377f
parent8696f659eadd58505469841a3af16ad2c830e8e5
extensions: conntrack: Use the right callbacks

These version-agnostic conntrack match aliases emulating the 'state'
extension introduced by commit 0d70163162589 ("libxt_state: replace as
an alias to xt_conntrack") had incompatible print and save callbacks
assigned. These callbacks expected struct xt_state_info in match->data
which is incompatible to any of the actual xt_conntrack_mtinfo* structs
used.

Fixes: b28d4dcc9f555 ("iptables: state match incompatibilty across versions")
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_conntrack.c