Blame SOURCES/rsyslog-8.37.0-rhbz1724218-imrelp-old-syntax.patch

763e28
From f53977817f352ef1c67178687cbfcee849f667fc Mon Sep 17 00:00:00 2001
763e28
From: Andre Lorbach <alorbach@adiscon.com>
763e28
Date: Tue, 9 Oct 2018 14:31:52 +0200
763e28
Subject: [PATCH] imrelp: Fixed issue with oldstyle configuration caused by
763e28
 commit:
763e28
763e28
https://github.com/rsyslog/rsyslog/commit/32b71daa8aadb8f16fe0ca2945e54d593f47a824
763e28
763e28
Fixed by setting bEnableLstn in addInstance().
763e28
763e28
Closes https://github.com/rsyslog/rsyslog/issues/3106
763e28
---
763e28
 plugins/imrelp/imrelp.c        |  2 ++
763e28
 1 files changed, 2 insertions(+)
763e28
763e28
diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c
763e28
index c2134e5165..076dd64900 100644
763e28
--- a/plugins/imrelp/imrelp.c
763e28
+++ b/plugins/imrelp/imrelp.c
763e28
@@ -346,6 +346,8 @@ static rsRetVal addInstance(void __attribute__((unused)) *pVal, uchar *pNewVal)
763e28
 		CHKmalloc(inst->pszBindRuleset = ustrdup(cs.pszBindRuleset));
763e28
 	}
763e28
 	inst->pBindRuleset = NULL;
763e28
+
763e28
+	inst->bEnableLstn = -1; /* all ok, ready to start up */
763e28
 finalize_it:
763e28
 	free(pNewVal);
763e28
 	RETiRet;