Package: rsyslog-czmq
Version: 8.24.0-1
Severity: important
Tags: patch

Dear Maintainer,

This crash at rsyslogd exit is fixed upstream and is included in 8.31.0

Upstream fix is in commit 666d2e1ce90c24448ec7319fe1ac90a37872fd6b
at https://github.com/rsyslog/rsyslog 

Please consider backporting this fix as the underlying issue is
critical. An inline patch is included.

Thanks,
Nachiketa Prachanda

Versions of packages rsyslog-czmq depends on:
ii  libc6     2.24-11+deb9u1
ii  libczmq4  4.0.2-7
ii  libzmq5   4.2.1-4
ii  rsyslog   8.24.0-1

rsyslog-czmq recommends no packages.


>From 666d2e1ce90c24448ec7319fe1ac90a37872fd6b Mon Sep 17 00:00:00 2001
From: Nachiketa Prachanda <nachiketa.pracha...@att.com>
Date: Tue, 31 Oct 2017 13:48:49 -0700
Subject: [PATCH] imczmq: remove unallocated and unused pointer

Fix a SIGSEGV in a call to
371: zcert_destroy(&serverCert) called from rcvData().

- remove serverCert as it is only used uninitialized in a call
to zcert_destroy() - this causes a core dump at rsyslogd exit.
- also initialize authActor at definition.

Signed-off-by: Nachiketa Prachanda <nachiketa.pracha...@att.com>
---
 contrib/imczmq/imczmq.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/contrib/imczmq/imczmq.c
+++ b/contrib/imczmq/imczmq.c
@@ -269,8 +269,7 @@ static rsRetVal rcvData(){
                }
        }
 
-       zactor_t *authActor;
-       zcert_t *serverCert;
+       zactor_t *authActor = NULL;
 
        if(runModConf->authenticator == 1) {
                authActor = zactor_new(zauth, NULL);
@@ -359,7 +358,6 @@ finalize_it:
        }
        zlist_destroy(&listenerList);
        zactor_destroy(&authActor);
-       zcert_destroy(&serverCert);
        RETiRet;
 }
 

Reply via email to