diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-29 14:18:12 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-29 14:18:12 +0000 |
commit | 9843274dc96ba4b3af079367f9704e232bde2b2d (patch) | |
tree | d3e6ca6b09faa53de31e484dcfb58f4938611d91 /action.c | |
parent | bf4ba7de44208dd4ccea602a30c788dcd480a12d (diff) | |
download | rsyslog-9843274dc96ba4b3af079367f9704e232bde2b2d.tar.gz rsyslog-9843274dc96ba4b3af079367f9704e232bde2b2d.tar.xz rsyslog-9843274dc96ba4b3af079367f9704e232bde2b2d.zip |
bugfixing newly added action code
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |