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

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