0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 16:48:43 +00:00

Yet another nasty bugfix of iface_patts_equal().

This commit is contained in:
Ondrej Filip 2000-11-08 22:46:54 +00:00
parent 0639f7263a
commit a5096a1bde

View File

@ -578,7 +578,9 @@ iface_patts_equal(list *a, list *b, int (*comp)(struct iface_patt *, struct ifac
y = HEAD(*b); y = HEAD(*b);
while (x->n.next && y->n.next) while (x->n.next && y->n.next)
{ {
if ((!(x->pattern==NULL)&&(x->pattern==NULL) && if ((!x->pattern && y->pattern) || /* This nasty lines where written by me... :-( Feela */
(!y->pattern && x->pattern) ||
(!(x->pattern==y->pattern) &&
strcmp(x->pattern, y->pattern)) || strcmp(x->pattern, y->pattern)) ||
!ipa_equal(x->prefix, y->prefix) || !ipa_equal(x->prefix, y->prefix) ||
x->pxlen != y->pxlen || x->pxlen != y->pxlen ||