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

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