Blame SOURCES/0054-fix-nftables-icmp-types-with-code-0.patch

725d6a
From 603ca9c2dd16f212a8b2fb43a9e9599fe3dd3abf Mon Sep 17 00:00:00 2001
725d6a
From: Eric Garver <eric@garver.life>
725d6a
Date: Fri, 28 Aug 2020 14:22:18 -0400
725d6a
Subject: [PATCH 54/62] fix(nftables): icmp types with code == 0
725d6a
725d6a
(cherry picked from commit 098e35168d6a15516cc76189a70df8db56bd1b13)
725d6a
(cherry picked from commit 8dcfaa607329cd4c2bdaa3b101371a30a04ef858)
725d6a
---
725d6a
 src/firewall/core/nftables.py | 2 +-
725d6a
 1 file changed, 1 insertion(+), 1 deletion(-)
725d6a
725d6a
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
725d6a
index 76668a60468f..daa7ace085a2 100644
725d6a
--- a/src/firewall/core/nftables.py
725d6a
+++ b/src/firewall/core/nftables.py
725d6a
@@ -82,7 +82,7 @@ def _icmp_types_fragments(protocol, type, code=None):
725d6a
     fragments = [{"match": {"left": {"payload": {"protocol": protocol, "field": "type"}},
725d6a
                             "op": "==",
725d6a
                             "right": type}}]
725d6a
-    if code:
725d6a
+    if code is not None:
725d6a
         fragments.append({"match": {"left": {"payload": {"protocol": protocol, "field": "code"}},
725d6a
                                     "op": "==",
725d6a
                                     "right": code}})
725d6a
-- 
725d6a
2.28.0
725d6a