Blame SOURCES/rsyslog-8.24.0-rhbz1400594-tls-config.patch

a856a8
From 83ea7bc475cc722033082e51416947842810d1fc Mon Sep 17 00:00:00 2001
a856a8
From: Tomas Sykora <tosykora@redhat.com>
a856a8
Date: Fri, 23 Dec 2016 06:51:52 -0500
a856a8
Subject: [PATCH 2/3] In rsyslog v7 because of bug mix of old and new syntax
a856a8
 had to be used to configure tls server-client. In rsyslog v8 this bug was
a856a8
 fixed but the mixed configuration didn't worked anymore which was a
a856a8
 regresion. With this patch, mixed configuration workes again.
a856a8
a856a8
Resolves: RHBZ#1400594
a856a8
---
a856a8
 tools/omfwd.c | 2 ++
a856a8
 1 file changed, 2 insertions(+)
a856a8
a856a8
diff --git a/tools/omfwd.c b/tools/omfwd.c
a856a8
index 45fcfd6..c1d3e64 100644
a856a8
--- a/tools/omfwd.c
a856a8
+++ b/tools/omfwd.c
a856a8
@@ -925,6 +925,8 @@ initTCP(wrkrInstanceData_t *pWrkrData)
a856a8
 		CHKiRet(tcpclt.SetSendPrepRetry(pWrkrData->pTCPClt, TCPSendPrepRetry));
a856a8
 		CHKiRet(tcpclt.SetFraming(pWrkrData->pTCPClt, pData->tcp_framing));
a856a8
 		CHKiRet(tcpclt.SetRebindInterval(pWrkrData->pTCPClt, pData->iRebindInterval));
a856a8
+		if (cs.iStrmDrvrMode)
a856a8
+                        pData->iStrmDrvrMode = cs.iStrmDrvrMode;
a856a8
 	}
a856a8
 finalize_it:
a856a8
 	RETiRet;
a856a8
-- 
a856a8
2.9.3
a856a8