diff --git a/util/linuxfw/nftables_runner.go b/util/linuxfw/nftables_runner.go index 7e7d80ca6..3092b08b5 100644 --- a/util/linuxfw/nftables_runner.go +++ b/util/linuxfw/nftables_runner.go @@ -429,7 +429,7 @@ func getOrCreateChain(c *nftables.Conn, cinfo chainInfo) (*nftables.Chain, error return chain, nil } - _ = c.AddChain(&nftables.Chain{ + chain = c.AddChain(&nftables.Chain{ Name: cinfo.name, Table: cinfo.table, Type: cinfo.chainType,