From 6b656d3608c98be930dfba04087262bd54f2a1cb Mon Sep 17 00:00:00 2001 From: Tomasz Kojm Date: Wed, 6 Feb 2008 20:48:34 +0000 Subject: [PATCH] compatibility with new matcher extension git-svn: trunk@3590 --- ChangeLog | 4 ++++ libclamav/regex_list.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 245a06d7c..ff7e3d640 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 6 21:30:55 CET 2008 (tk) +--------------------------------- + * libclamav/regex_list.c: compatibility with new matcher extension + Wed Feb 6 20:36:05 EET 2008 (edwin) ------------------------------------ * contrib/entitynorm/, libclamav/hashtab.[ch], readdb.c, matcher.h, entitylist.h, encoding_aliases.h: diff --git a/libclamav/regex_list.c b/libclamav/regex_list.c index 89d32bfb2..90d1853af 100644 --- a/libclamav/regex_list.c +++ b/libclamav/regex_list.c @@ -60,6 +60,7 @@ #include "others.h" #include "regex_list.h" #include "matcher-ac.h" +#include "matcher.h" #include "str.h" #include "readdb.h" @@ -462,6 +463,7 @@ static int add_regex_list_element(struct cli_matcher* root,const char* pattern,c new->offset = 0; new->target = 0; new->length = len; + new->ch[0] = new->ch[1] |= CLI_MATCH_IGNORE; if(new->length > root->maxpatlen) root->maxpatlen = new->length;