From 5109254448f34cfafa4128bc514b21590eba8523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelina=20Ho=C5=82ub?= Date: Fri, 16 Feb 2024 23:33:06 +0100 Subject: [PATCH] fix: uninitialized CommonError struct --- daemon/firewall/iptables/rules.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/firewall/iptables/rules.go b/daemon/firewall/iptables/rules.go index a5b8ab524a..b7e606ce92 100644 --- a/daemon/firewall/iptables/rules.go +++ b/daemon/firewall/iptables/rules.go @@ -11,6 +11,7 @@ import ( // RunRule inserts or deletes a firewall rule. func (ipt *Iptables) RunRule(action Action, enable bool, logError bool, rule []string) (err *common.FirewallError) { + err = &common.FirewallError{} if enable == false { action = "-D" }