diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-24 18:25:02 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-24 18:25:02 +0200 |
commit | 1de0e68c927e25fd0ca4f859a33d4943c6b8948f (patch) | |
tree | 91840b5ba93ea2c63f1e59d5fd95774f561b641e /plugins/imudp/imudp.c | |
parent | d9b2ccbf3886fb3a1ad7eaba59f5486bee6aaa33 (diff) | |
download | rsyslog-1de0e68c927e25fd0ca4f859a33d4943c6b8948f.tar.gz rsyslog-1de0e68c927e25fd0ca4f859a33d4943c6b8948f.tar.bz2 rsyslog-1de0e68c927e25fd0ca4f859a33d4943c6b8948f.zip |
bugfix: RainerScript object required parameters were not properly checked
this clould result to segfaults on startup if parameters were missing.
Diffstat (limited to 'plugins/imudp/imudp.c')
-rw-r--r-- | plugins/imudp/imudp.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) { |