Blame SOURCES/0025-segtree-Fix-missing-expires-value-in-prefixes.patch

8fd843
From ab62f33df5ef33f6eff8d88d9475a01822a2f625 Mon Sep 17 00:00:00 2001
8fd843
From: Phil Sutter <psutter@redhat.com>
8fd843
Date: Tue, 30 Jun 2020 16:20:22 +0200
8fd843
Subject: [PATCH] segtree: Fix missing expires value in prefixes
8fd843
8fd843
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1832235
8fd843
Upstream Status: nftables commit 60ba9c22fecc0
8fd843
8fd843
commit 60ba9c22fecc0ca9bb2a61f6ad39bceed1aee38f
8fd843
Author: Phil Sutter <phil@nwl.cc>
8fd843
Date:   Tue Apr 28 20:54:03 2020 +0200
8fd843
8fd843
    segtree: Fix missing expires value in prefixes
8fd843
8fd843
    This probable copy'n'paste bug prevented 'expiration' field from being
8fd843
    populated when turning a range into a prefix in
8fd843
    interval_map_decompose(). Consequently, interval sets with timeout did
8fd843
    print expiry value for ranges (such as 10.0.0.1-10.0.0.5) but not
8fd843
    prefixes (10.0.0.0/8, for instance).
8fd843
8fd843
    Fixes: bb0e6d8a2851b ("segtree: incorrect handling of comments and timeouts with mapping")
8fd843
    Signed-off-by: Phil Sutter <phil@nwl.cc>
8fd843
---
8fd843
 src/segtree.c | 2 +-
8fd843
 1 file changed, 1 insertion(+), 1 deletion(-)
8fd843
8fd843
diff --git a/src/segtree.c b/src/segtree.c
8fd843
index e859f84..1ba4363 100644
8fd843
--- a/src/segtree.c
8fd843
+++ b/src/segtree.c
8fd843
@@ -1086,7 +1086,7 @@ void interval_map_decompose(struct expr *set)
8fd843
 					prefix->comment = xstrdup(low->comment);
8fd843
 				if (low->timeout)
8fd843
 					prefix->timeout = low->timeout;
8fd843
-				if (low->left->expiration)
8fd843
+				if (low->expiration)
8fd843
 					prefix->expiration = low->expiration;
8fd843
 			}
8fd843
 
8fd843
-- 
8fd843
1.8.3.1
8fd843