Blame SOURCES/0003-fix-nftables-ipset-port-ranges-for-non-default-proto.patch

e4e66d
From b2e4f83c8fb011ffe0a8b040fa937f60c842cc25 Mon Sep 17 00:00:00 2001
e4e66d
From: Eric Garver <eric@garver.life>
e4e66d
Date: Thu, 2 Apr 2020 14:42:22 -0400
e4e66d
Subject: [PATCH 3/6] fix: nftables: ipset: port ranges for non-default
e4e66d
 protocols
e4e66d
e4e66d
Fixes: 2d1b0fe9fe74 ("fix: nftables: allow set intervals with concatenations")
e4e66d
(cherry picked from commit e80f4fccfc771128affdc578ed37842d5d469ca9)
e4e66d
(cherry picked from commit 6a2fd018666ab8c4877291f8f807a9943db74de3)
e4e66d
---
e4e66d
 src/firewall/core/nftables.py | 2 +-
e4e66d
 1 file changed, 1 insertion(+), 1 deletion(-)
e4e66d
e4e66d
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
e4e66d
index a9d5a45337bd..69ee63b32f8b 100644
e4e66d
--- a/src/firewall/core/nftables.py
e4e66d
+++ b/src/firewall/core/nftables.py
e4e66d
@@ -1680,7 +1680,7 @@ class nftables(object):
e4e66d
                     port_str = entry_tokens[i][index+1:]
e4e66d
 
e4e66d
                 try:
e4e66d
-                    index = entry_tokens[i].index("-")
e4e66d
+                    index = port_str.index("-")
e4e66d
                 except ValueError:
e4e66d
                     fragment.append(port_str)
e4e66d
                 else:
e4e66d
-- 
e4e66d
2.23.0
e4e66d