diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-25 16:39:54 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-25 16:39:54 +0200 |
commit | afd31707a4dc3d4dd48c849321ae409179750160 (patch) | |
tree | 1f16aa7f7df80bea53e6e45034b591522fba3752 | |
parent | fcc68b2a56c3cedbd15d15bc6d6f7f08e90cd8f3 (diff) | |
download | rsyslog-afd31707a4dc3d4dd48c849321ae409179750160.tar.gz rsyslog-afd31707a4dc3d4dd48c849321ae409179750160.tar.bz2 rsyslog-afd31707a4dc3d4dd48c849321ae409179750160.zip |
bugfix: omrelp potential segfault at startup on invalid config parameters
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | plugins/omrelp/omrelp.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -10,6 +10,7 @@ Version 7.5.1 [devel] 2013-06-?? parameters used by GnuTLS * support for impstats added * support for setting permitted peers (client authentication) added + * bugfix: potential segfault at startup on invalid config parameters - imjournal: imported patches from 7.4.1 - omprog: add support for command line parameters - added experimental TCP stream compression (imptcp only, currently) diff --git a/plugins/omrelp/omrelp.c b/plugins/omrelp/omrelp.c index 67cf1c60..a3dac025 100644 --- a/plugins/omrelp/omrelp.c +++ b/plugins/omrelp/omrelp.c @@ -296,7 +296,8 @@ CODESTARTnewActInst CHKiRet(doCreateRelpClient(pData)); CODE_STD_FINALIZERnewActInst - cnfparamvalsDestruct(pvals, &actpblk); + if(pvals != NULL) + cnfparamvalsDestruct(pvals, &actpblk); ENDnewActInst BEGINisCompatibleWithFeature |