From: Ondrej Filip Date: Wed, 8 Nov 2000 22:46:54 +0000 (+0000) Subject: Yet another nasty bugfix of iface_patts_equal(). X-Git-Tag: v1.2.0~481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5096a1bdebe217eb0d04a95489562ac132f4552;p=thirdparty%2Fbird.git Yet another nasty bugfix of iface_patts_equal(). --- diff --git a/nest/iface.c b/nest/iface.c index 5255cff29..f41bc2119 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -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 ||