diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-07 16:34:51 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-07 16:34:51 +0000 |
commit | d471e71adabdad4fba8b59c4017a1c5f1f111073 (patch) | |
tree | 078d95dfd438e1b3d6a72a1ede5d422c89b9a0a7 /template.c | |
parent | 549c0cccd44dc36a6ba8c480fa65bcaad6cb20ec (diff) | |
download | rsyslog-d471e71adabdad4fba8b59c4017a1c5f1f111073.tar.gz rsyslog-d471e71adabdad4fba8b59c4017a1c5f1f111073.tar.bz2 rsyslog-d471e71adabdad4fba8b59c4017a1c5f1f111073.zip |
fixed potential infinite loop condition when module load failed on startup
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -627,7 +627,7 @@ static int do_Parameter(unsigned char **pp, struct template *pTpl) /* Now i compile the regex */ /* Remember that the re is an attribute of the Template entry */ - if((iRetLocal = objUse(regexp, "regexp")) == RS_RET_OK) { + if((iRetLocal = objUse(regexp, "lmregexp")) == RS_RET_OK) { if(regexp.regcomp(&(pTpe->data.field.re), (char*) regex_char, 0) != 0) { dbgprintf("error: can not compile regex: '%s'\n", regex_char); pTpe->data.field.has_regex = 2; |