- Timestamp:
- May 11, 2010, 8:22:06 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_correlate.c
r272 r285 271 271 * array, otherwise number of matches is not returned. 272 272 */ 273 #if defined(HAVE_PCRE_DFA_EXEC) 273 274 int ovector[SH_MINIBUF]; 274 275 int wspace[SH_MINIBUF]; 276 #endif 277 278 #if defined(HAVE_PCRE_DFA_EXEC) 275 279 int val = pcre_dfa_exec(mkeep->rule, NULL, 276 280 sh_string_str(res), … … 280 284 ovector, SH_MINIBUF, 281 285 wspace, SH_MINIBUF); 286 #else 287 int val = pcre_exec(mkeep->rule, NULL, 288 sh_string_str(res), 289 (int)sh_string_len(res), 290 0, /* start at offset 0 in the subject */ 291 0, 292 NULL, 0); 293 val = (val >= 0) ? 1 : val; 294 #endif 295 282 296 if (val >= 0) 283 297 { -
trunk/src/sh_log_evalrule.c
r276 r285 1034 1034 mmm = replace_captures(record->message, rule->ovector, 1035 1035 rule->ovecnum); 1036 rule->ovecnum = 0; 1036 1037 msg = sh_util_safe_name_keepspace (sh_string_str(mmm)); 1037 1038 } … … 1133 1134 */ 1134 1135 static int process_counter(struct sh_ceval * counter, 1135 struct sh_geval * rule, struct sh_logrecord * record) 1136 struct sh_geval * rule, 1137 struct sh_logrecord * record) 1136 1138 { 1137 1139 int retval = -1; … … 1142 1144 counter->counted_str = replace_captures(record->message, rule->ovector, 1143 1145 rule->ovecnum); 1146 rule->ovecnum = 0; 1144 1147 counter->filename = sh_string_new_from_lchar(record->filename, 1145 1148 strlen(record->filename));
Note:
See TracChangeset
for help on using the changeset viewer.