git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@734 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/08/09 09:39:55... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Mon Aug 9 02:32:49 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: matcher-bm: fix another bug in node sorting (spotted by Nigel) |
|
4 |
+ |
|
1 | 5 |
Sun Aug 8 22:31:12 BST 2004 (njh) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/mbox: Started code (not yet enabled by default) to scan URLs |
... | ... |
@@ -52,13 +52,13 @@ int cli_bm_addpatt(struct cl_node *root, struct cli_bm_patt *pattern) |
52 | 52 |
prev = next = root->bm_suffix[idx]; |
53 | 53 |
|
54 | 54 |
while(next) { |
55 |
- if(pt[0] > next->pattern[0]) |
|
55 |
+ if(pt[0] >= next->pattern[0]) |
|
56 | 56 |
break; |
57 | 57 |
prev = next; |
58 | 58 |
next = next->next; |
59 | 59 |
} |
60 | 60 |
|
61 |
- if(prev == root->bm_suffix[idx]) { |
|
61 |
+ if(next == root->bm_suffix[idx]) { |
|
62 | 62 |
pattern->next = root->bm_suffix[idx]; |
63 | 63 |
root->bm_suffix[idx] = pattern; |
64 | 64 |
} else { |