File 0001-Low-libcrmcommon-avoid-libqb-assertion.patch of Package pacemaker.29737

From 9ee00a24f10e67f5ba241d206e58604e7fca259c Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Mon, 13 Mar 2023 12:50:09 -0500
Subject: [PATCH] Low: libcrmcommon: avoid libqb assertion

---
 lib/common/mainloop.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/common/mainloop.c b/lib/common/mainloop.c
index 28fb094b9..3124e4347 100644
--- a/lib/common/mainloop.c
+++ b/lib/common/mainloop.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004-2022 the Pacemaker project contributors
+ * Copyright 2004-2023 the Pacemaker project contributors
  *
  * The version control history for this file may have further details.
  *
@@ -683,8 +683,7 @@ mainloop_add_ipc_server_with_prio(const char *name, enum qb_ipc_type type,
     rc = qb_ipcs_run(server);
     if (rc < 0) {
         crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc);
-        qb_ipcs_destroy(server);
-        return NULL;
+        return NULL; // qb_ipcs_run() destroys server on failure
     }
 
     return server;
-- 
2.35.3

openSUSE Build Service is sponsored by