summaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-12 07:11:09 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-12 07:11:09 +0000
commitb1555cd681652e57f76449e39cb1aae8db7d601b (patch)
tree274b22d93e2daedc177ed5a990ed042e4feb04a0 /conf.c
parente946e122d02987552874595f2613c07ce0c0aa23 (diff)
downloadrsyslog-b1555cd681652e57f76449e39cb1aae8db7d601b.tar.gz
rsyslog-b1555cd681652e57f76449e39cb1aae8db7d601b.tar.xz
rsyslog-b1555cd681652e57f76449e39cb1aae8db7d601b.zip
bugfix: not properly initialized data could cause several segfaults if
there were errors in the config file - thanks to varmojfekoj for the patch
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index fd046fb4..49bce213 100644
--- a/conf.c
+++ b/conf.c
@@ -1024,6 +1024,7 @@ static rsRetVal cflineDoAction(uchar **p, action_t **ppAction)
/* loop through all modules and see if one picks up the line */
pMod = module.GetNxtType(NULL, eMOD_OUT);
while(pMod != NULL) {
+ pOMSR = NULL;
iRet = pMod->mod.om.parseSelectorAct(p, &pModData, &pOMSR);
dbgprintf("tried selector action for %s: %d\n", module.GetName(pMod), iRet);
if(iRet == RS_RET_OK || iRet == RS_RET_SUSPENDED) {