diff options
author | Ondrej Filip <feela@majklik.network.cz> | 2009-05-29 23:04:54 +0200 |
---|---|---|
committer | Ondrej Filip <feela@majklik.network.cz> | 2009-05-29 23:04:54 +0200 |
commit | 43de796b8a10f561d8b3ef64a86e5ce70de01eb5 (patch) | |
tree | 5bd062308dff01a5fc5990ed6a656e6edf02969e /filter | |
parent | d59405ec6652e95f4825492c7322536bb7044db0 (diff) | |
download | bird-43de796b8a10f561d8b3ef64a86e5ce70de01eb5.tar bird-43de796b8a10f561d8b3ef64a86e5ce70de01eb5.zip |
Function pm_path_compare() checked just length of the bgpmasks
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c index fe3c9cb..deaea34 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -64,6 +64,8 @@ pm_path_compare(struct f_path_mask *m1, struct f_path_mask *m2) while (1) { if ((!m1) || (!m2)) return !((!m1) && (!m2)); + + if ((m1->kind != m2->kind) || (m1->val != m2->val)) return 1; m1 = m1->next; m2 = m2->next; } |