summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-18 09:42:04 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-18 09:42:04 +0000
commit12274407143957481c1dbcc94390418d932b582d (patch)
tree846d046cdd7fc771f967d1fc010aa2bd1a8dbe20 /action.c
parent03a9aa66e2a38dc4f69a0db2f61861c3b17c7d2d (diff)
downloadrsyslog-12274407143957481c1dbcc94390418d932b582d.tar.gz
rsyslog-12274407143957481c1dbcc94390418d932b582d.tar.xz
rsyslog-12274407143957481c1dbcc94390418d932b582d.zip
bugfix: fixed abort when invalid template was provided to an action bug:
http://bugzilla.adiscon.com/show_bug.cgi?id=4
Diffstat (limited to 'action.c')
-rw-r--r--action.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/action.c b/action.c
index d9ac6133..938aefaf 100644
--- a/action.c
+++ b/action.c
@@ -126,7 +126,9 @@ rsRetVal actionDestruct(action_t *pThis)
DEFiRet;
ASSERT(pThis != NULL);
- queueDestruct(&pThis->pQueue);
+ if(pThis->pQueue != NULL) {
+ queueDestruct(&pThis->pQueue);
+ }
if(pThis->pMod != NULL)
pThis->pMod->freeInstance(pThis->pModData);