Blame SOURCES/bz1508435-remove-ipset-handling.patch

cead2e
From dcb5af32ea618c42e353f399962bdd6dc1c8a7d9 Mon Sep 17 00:00:00 2001
cead2e
From: Quentin Armitage <quentin@armitage.org.uk>
cead2e
Date: Mon, 27 Mar 2017 20:44:50 +0100
cead2e
Subject: [PATCH 3/3] Don't attempt to remove ipsets if ipset handling not
cead2e
 initialised
cead2e
cead2e
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
cead2e
---
cead2e
 keepalived/vrrp/vrrp_ipset.c | 5 +++++
cead2e
 1 file changed, 5 insertions(+)
cead2e
cead2e
diff --git a/keepalived/vrrp/vrrp_ipset.c b/keepalived/vrrp/vrrp_ipset.c
cead2e
index 1c3e4990..b40bc836 100644
cead2e
--- a/keepalived/vrrp/vrrp_ipset.c
cead2e
+++ b/keepalived/vrrp/vrrp_ipset.c
cead2e
@@ -270,6 +270,11 @@ bool remove_ipsets(void)
cead2e
 	if (!global_data->using_ipsets)
cead2e
 		return true;
cead2e
 
cead2e
+#ifdef _LIBIPSET_DYNAMIC_
cead2e
+	if (!libipset_handle)
cead2e
+		return true;
cead2e
+#endif
cead2e
+
cead2e
 	session = ipset_session_init(printf);
cead2e
 	if (!session) {
cead2e
 		log_message(LOG_INFO, "Cannot initialize ipset session.");
cead2e
-- 
cead2e
2.13.5
cead2e