From af7b73f4706bd565027bfc8b6e5d4a7c8c55a068 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Fri, 19 Mar 2010 13:54:36 -0400 Subject: [PATCH] classifer: Fix test classifier to match real classifier. The trivial test classifier had the same bug as the real classifier when replacing matching flows. This caused it to not find the original bug and then break when the bug was fixed. --- tests/test-classifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 6c81cd60f..563690dd0 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -111,7 +111,7 @@ tcls_insert(struct tcls *tcls, const struct test_rule *rule) free(tcls->rules[i]); tcls->rules[i] = xmemdup(rule, sizeof *rule); return tcls->rules[i]; - } else if (pos->priority <= rule->cls_rule.priority) { + } else if (pos->priority < rule->cls_rule.priority) { break; } } -- 2.43.0