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

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