summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-29 14:18:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-29 14:18:12 +0000
commit9843274dc96ba4b3af079367f9704e232bde2b2d (patch)
treed3e6ca6b09faa53de31e484dcfb58f4938611d91 /action.c
parentbf4ba7de44208dd4ccea602a30c788dcd480a12d (diff)
downloadrsyslog-9843274dc96ba4b3af079367f9704e232bde2b2d.tar.gz
rsyslog-9843274dc96ba4b3af079367f9704e232bde2b2d.tar.xz
rsyslog-9843274dc96ba4b3af079367f9704e232bde2b2d.zip
bugfixing newly added action code
Diffstat (limited to 'action.c')
-rw-r--r--action.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/action.c b/action.c
index a3684796..eb8f2b02 100644
--- a/action.c
+++ b/action.c
@@ -84,6 +84,8 @@ rsRetVal actionDestruct(action_t *pThis)
{
ASSERT(pThis != NULL);
+ queueDestruct(&pThis->pQueue);
+
if(pThis->pMod != NULL)
pThis->pMod->freeInstance(pThis->pModData);
@@ -308,14 +310,16 @@ actionCallDoAction(action_t *pAction, msg_t *pMsg)
RUNLOG_STR("going into do_action call loop");
RUNLOG_VAR("%d", iRetries);
/* first check if we are suspended and, if so, retry */
+ ASSERT(pAction != NULL);
if(actionIsSuspended(pAction)) {
dbgprintf("action %p is suspended\n", pAction);
iRet = actionTryResume(pAction);
}
if(iRet == RS_RET_OK) {
+RUNLOG_STR("calling configured action\n");
/* call configured action */
- iRet = pAction->pMod->mod.om.doAction(pAction->ppMsgs, pAction->f_pMsg->msgFlags, pAction->pModData);
+ iRet = pAction->pMod->mod.om.doAction(pAction->ppMsgs, pMsg->msgFlags, pAction->pModData);
}
RUNLOG_VAR("%d", iRet);