template/bugfix: invalid template option conflict detection

closes https://github.com/rsyslog/rsyslog/issues/1811
This commit is contained in:
Rainer Gerhards 2017-10-05 14:49:17 +02:00
parent 73c6980060
commit 8ac4776543

View File

@ -2000,7 +2000,6 @@ tplProcessCnf(struct cnfobj *o)
if(o_sql) ++numopts;
if(o_stdsql) ++numopts;
if(o_json) ++numopts;
if(o_casesensitive) ++numopts;
if(numopts > 1) {
errmsg.LogError(0, RS_RET_ERR, "template '%s' has multiple incompatible "
"options of sql, stdsql or json specified", name);