On Sat, Nov 06, 2021 at 09:45:44PM +0100, Phil Sutter wrote: > Fixed commit broke xtables-translate which still relied upon do_parse() > to properly initialize the passed iptables_command_state reference. To > allow for callers to preset fields, this doesn't happen anymore so > do_command_xlate() has to initialize itself. Otherwise garbage from > stack is read leading to segfaults and program aborts. > > Although init_cs callback is used by arptables only and > arptables-translate has not been implemented, do call it if set just to > avoid future issues. > > Fixes: cfdda18044d81 ("nft-shared: Introduce init_cs family ops callback") > Signed-off-by: Phil Sutter <phil@xxxxxx> Tested-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>