summaryrefslogtreecommitdiffstats
path: root/plugins/imtcp
diff options
context:
space:
mode:
authorvarmojfekoj <theinric@redhat.com>2008-05-14 08:32:40 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-14 08:32:40 +0200
commitd2b63414ef92cde8a3107b8d17b74b1518775df6 (patch)
tree26097bcdb741da5da6507d5e37df5d5fce7b743e /plugins/imtcp
parentd594f83a893a517328f55b0b0b3240c4073efb89 (diff)
downloadrsyslog-d2b63414ef92cde8a3107b8d17b74b1518775df6.tar.gz
rsyslog-d2b63414ef92cde8a3107b8d17b74b1518775df6.tar.xz
rsyslog-d2b63414ef92cde8a3107b8d17b74b1518775df6.zip
fixed potential segfault due to invalid call to cfsysline
thanks to varmojfekoj for the patch Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'plugins/imtcp')
-rw-r--r--plugins/imtcp/imtcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c
index 1bf30493..971d3aec 100644
--- a/plugins/imtcp/imtcp.c
+++ b/plugins/imtcp/imtcp.c
@@ -225,8 +225,8 @@ CODEmodInit_QueryRegCFSLineHdlr
addTCPListener, NULL, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputtcpmaxsessions", 0, eCmdHdlrInt,
NULL, &iTCPSessMax, STD_LOADABLE_MODULE_ID));
- CHKiRet(regCfSysLineHdlr((uchar *)"inputtcpserverstreamdrivermode", 0,
- eCmdHdlrInt, NULL, &iStrmDrvrMode, NULL));
+ CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputtcpserverstreamdrivermode", 0,
+ eCmdHdlrInt, NULL, &iStrmDrvrMode, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler,
resetConfigVariables, NULL, STD_LOADABLE_MODULE_ID));
ENDmodInit