Browse code

fix malformed .pdb handling (bb #1338)

git-svn: trunk@4591

Török Edvin authored on 2009/01/05 19:41:03
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Jan  5 12:56:59 EET 2009 (edwin)
2
+------------------------------------
3
+ * libclamav/regex_list.c: fix malformed .pdb handling (bb #1338)
4
+
1 5
 Fri Jan  2 23:00:52 CET 2009 (tk)
2 6
 ---------------------------------
3 7
  * shared/misc.c: re-enable freshdbdir()
... ...
@@ -571,7 +571,7 @@ void regex_list_done(struct regex_matcher* matcher)
571 571
 {
572 572
 	assert(matcher);
573 573
 
574
-	if(matcher->list_inited) {
574
+	if(matcher->list_inited == 1) {
575 575
 		size_t i;
576 576
 		cli_ac_free(&matcher->suffixes);
577 577
 		if(matcher->suffix_regexes) {