diff options
author | Ondrej Filip <feela@network.cz> | 2000-11-08 23:46:54 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-11-08 23:46:54 +0100 |
commit | a5096a1bdebe217eb0d04a95489562ac132f4552 (patch) | |
tree | e3336a1c81354108f686a61eb107cbe02cc2d6a9 /nest | |
parent | 0639f7263a9a73cce6948cad23cd2d4858d36c5b (diff) | |
download | bird-a5096a1bdebe217eb0d04a95489562ac132f4552.tar bird-a5096a1bdebe217eb0d04a95489562ac132f4552.zip |
Yet another nasty bugfix of iface_patts_equal().
Diffstat (limited to 'nest')
-rw-r--r-- | nest/iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nest/iface.c b/nest/iface.c index 5255cff..f41bc21 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 || |