From 5ad34eac4a9b2d78fcb887ddabef47b7270b083b Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 04 2021 06:16:44 +0000 Subject: Apply patch 0054-fix-nftables-icmp-types-with-code-0.patch patch_name: 0054-fix-nftables-icmp-types-with-code-0.patch present_in_specfile: true location_in_specfile: 54 --- diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py index 76668a6..daa7ace 100644 --- a/src/firewall/core/nftables.py +++ b/src/firewall/core/nftables.py @@ -82,7 +82,7 @@ def _icmp_types_fragments(protocol, type, code=None): fragments = [{"match": {"left": {"payload": {"protocol": protocol, "field": "type"}}, "op": "==", "right": type}}] - if code: + if code is not None: fragments.append({"match": {"left": {"payload": {"protocol": protocol, "field": "code"}}, "op": "==", "right": code}})