summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-06 13:07:06 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-06 13:07:06 +0100
commitec32919ca05598f11f538060c406d8668a35e229 (patch)
tree11bf808954bb01a9a67b109c3b20a02c80c1f8b2 /action.c
parent80a4feb542e15b2fe100f88690000789eab562bb (diff)
parent6b0e236cdf3d55299de70cf41dafdefec286f103 (diff)
downloadrsyslog-ec32919ca05598f11f538060c406d8668a35e229.tar.gz
rsyslog-ec32919ca05598f11f538060c406d8668a35e229.tar.bz2
rsyslog-ec32919ca05598f11f538060c406d8668a35e229.zip
Merge branch 'master' into master-ruleeng
Diffstat (limited to 'action.c')
-rw-r--r--action.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/action.c b/action.c
index 61918884..29725046 100644
--- a/action.c
+++ b/action.c
@@ -1946,20 +1946,14 @@ actionNewInst(struct nvlst *lst, action_t **ppAction)
omodStringRequest_t *pOMSR;
void *pModData;
action_t *pAction;
- int typeIdx;
DEFiRet;
paramvals = nvlstGetParams(lst, &pblk, NULL);
if(paramvals == NULL) {
- ABORT_FINALIZE(RS_RET_ERR);
+ ABORT_FINALIZE(RS_RET_PARAM_ERROR);
}
dbgprintf("action param blk after actionNewInst:\n");
cnfparamsPrint(&pblk, paramvals);
- typeIdx = cnfparamGetIdx(&pblk, "type");
- if(paramvals[typeIdx].bUsed == 0) {
- errmsg.LogError(0, RS_RET_CONF_RQRD_PARAM_MISSING, "action type missing");
- ABORT_FINALIZE(RS_RET_CONF_RQRD_PARAM_MISSING); // TODO: move this into rainerscript handlers
- }
cnfModName = (uchar*)es_str2cstr(paramvals[cnfparamGetIdx(&pblk, ("type"))].val.d.estr, NULL);
if((pMod = module.FindWithCnfName(loadConf, cnfModName, eMOD_OUT)) == NULL) {
errmsg.LogError(0, RS_RET_MOD_UNKNOWN, "module name '%s' is unknown", cnfModName);