Blame SOURCES/rsyslog-8.24.0-rhbz1505103-omrelp-rebindinterval.patch

b65758
From cc09e7a6e893157a4d7a173c78f4b0a0496e8fbd Mon Sep 17 00:00:00 2001
b65758
From: Rainer Gerhards <rgerhards@adiscon.com>
b65758
Date: Thu, 28 Sep 2017 19:08:35 +0200
b65758
Subject: [PATCH] omrelp bugfix: segfault if rebindinterval config param is
b65758
 used
b65758
b65758
closes https://github.com/rsyslog/rsyslog/issues/120
b65758
---
b65758
 plugins/omrelp/omrelp.c | 6 ++++--
b65758
 1 file changed, 4 insertions(+), 2 deletions(-)
b65758
b65758
diff --git a/plugins/omrelp/omrelp.c b/plugins/omrelp/omrelp.c
b65758
index 3df062e0e..d32a66e07 100644
b65758
--- a/plugins/omrelp/omrelp.c
b65758
+++ b/plugins/omrelp/omrelp.c
b65758
@@ -566,8 +566,10 @@ ENDdoAction
b65758
b65758
 BEGINendTransaction
b65758
 CODESTARTendTransaction
b65758
-	dbgprintf("omrelp: endTransaction\n");
b65758
-	relpCltHintBurstEnd(pWrkrData->pRelpClt);
b65758
+	DBGPRINTF("omrelp: endTransaction, connected %d\n", pWrkrData->bIsConnected);
b65758
+	if(pWrkrData->bIsConnected) {
b65758
+		relpCltHintBurstEnd(pWrkrData->pRelpClt);
b65758
+	}
b65758
 ENDendTransaction
b65758
b65758
 BEGINparseSelectorAct