Blame SOURCES/0029-fix-rich-source-mac-with-nftables-backend.patch

8072fb
From 53e62b6640c2d52ca6385120e3215b18d4ea70bf Mon Sep 17 00:00:00 2001
8072fb
From: Eric Garver <eric@garver.life>
8072fb
Date: Mon, 8 Jun 2020 14:58:50 -0400
8072fb
Subject: [PATCH 29/45] fix(rich): source mac with nftables backend
8072fb
8072fb
Fixes: #643
8072fb
Fixes: rhbz 1843398
8072fb
Fixes: 1582c5dd736a ("feat: nftables: convert to libnftables JSON interface")
8072fb
(cherry picked from commit e255e7357358b5fe1593225e6bd995850421825a)
8072fb
(cherry picked from commit d78607ca4862a7b20551a98387ff285499d73440)
8072fb
---
8072fb
 src/firewall/core/nftables.py | 2 +-
8072fb
 1 file changed, 1 insertion(+), 1 deletion(-)
8072fb
8072fb
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
8072fb
index 69ee63b32f8b..97b1cd9f7f1e 100644
8072fb
--- a/src/firewall/core/nftables.py
8072fb
+++ b/src/firewall/core/nftables.py
8072fb
@@ -1064,7 +1064,7 @@ class nftables(object):
8072fb
                 if addr_field == "daddr":
8072fb
                     raise FirewallError(INVALID_RULE, "%s._rule_addr_fragment()", (self.__class__))
8072fb
                 family = "ether"
8072fb
-            if check_single_address("ipv4", address):
8072fb
+            elif check_single_address("ipv4", address):
8072fb
                 family = "ip"
8072fb
             elif check_address("ipv4", address):
8072fb
                 family = "ip"
8072fb
-- 
8072fb
2.27.0
8072fb