Skip to content

Commit 5109254

Browse files
committed
fix: uninitialized CommonError struct
1 parent 90b0d3c commit 5109254

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

daemon/firewall/iptables/rules.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111

1212
// RunRule inserts or deletes a firewall rule.
1313
func (ipt *Iptables) RunRule(action Action, enable bool, logError bool, rule []string) (err *common.FirewallError) {
14+
err = &common.FirewallError{}
1415
if enable == false {
1516
action = "-D"
1617
}

0 commit comments

Comments
 (0)