From 1de0e68c927e25fd0ca4f859a33d4943c6b8948f Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 24 Jun 2013 18:25:02 +0200 Subject: bugfix: RainerScript object required parameters were not properly checked this clould result to segfaults on startup if parameters were missing. --- plugins/imudp/imudp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/imudp/imudp.c') diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index 7bf1473a..1bdd0868 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -746,10 +746,7 @@ BEGINnewInpInst CODESTARTnewInpInst DBGPRINTF("newInpInst (imudp)\n"); - pvals = nvlstGetParams(lst, &inppblk, NULL); - if(pvals == NULL) { - errmsg.LogError(0, RS_RET_MISSING_CNFPARAMS, - "imudp: required parameter are missing\n"); + if((pvals = nvlstGetParams(lst, &inppblk, NULL)) == NULL) { ABORT_FINALIZE(RS_RET_MISSING_CNFPARAMS); } if(Debug) { -- cgit v1.2.3