Function pm_path_compare() checked just length of the bgpmasks
This commit is contained in:
parent
d59405ec66
commit
43de796b8a
1 changed files with 2 additions and 0 deletions
|
@ -64,6 +64,8 @@ pm_path_compare(struct f_path_mask *m1, struct f_path_mask *m2)
|
||||||
while (1) {
|
while (1) {
|
||||||
if ((!m1) || (!m2))
|
if ((!m1) || (!m2))
|
||||||
return !((!m1) && (!m2));
|
return !((!m1) && (!m2));
|
||||||
|
|
||||||
|
if ((m1->kind != m2->kind) || (m1->val != m2->val)) return 1;
|
||||||
m1 = m1->next;
|
m1 = m1->next;
|
||||||
m2 = m2->next;
|
m2 = m2->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue