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

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