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);
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)) ||
!ipa_equal(x->prefix, y->prefix) ||
x->pxlen != y->pxlen ||