]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Yet another nasty bugfix of iface_patts_equal().
authorOndrej Filip <feela@network.cz>
Wed, 8 Nov 2000 22:46:54 +0000 (22:46 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 8 Nov 2000 22:46:54 +0000 (22:46 +0000)
nest/iface.c

index 5255cff29b21071af492993e482bee1fd6fed230..f41bc211941809e8c3f99f949bb8f65460c50d46 100644 (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 ||