summaryrefslogtreecommitdiffstats
path: root/nest/iface.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-11-08 18:06:35 +0100
committerOndrej Filip <feela@network.cz>2000-11-08 18:06:35 +0100
commit0639f7263a9a73cce6948cad23cd2d4858d36c5b (patch)
tree1003ebf47d594808e86ed018d48eecbd94d0f5aa /nest/iface.c
parent482bbc7396268fce66e8ecb59f248bc51229cdc9 (diff)
downloadbird-0639f7263a9a73cce6948cad23cd2d4858d36c5b.tar
bird-0639f7263a9a73cce6948cad23cd2d4858d36c5b.zip
Bugfix in iface_patts_equal.
When both patterns were NULL strcmp it sigfaulted.
Diffstat (limited to 'nest/iface.c')
-rw-r--r--nest/iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/iface.c b/nest/iface.c
index 9c884a0..5255cff 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -578,7 +578,8 @@ 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 (strcmp(x->pattern, y->pattern) ||
+ if ((!(x->pattern==NULL)&&(x->pattern==NULL) &&
+ strcmp(x->pattern, y->pattern)) ||
!ipa_equal(x->prefix, y->prefix) ||
x->pxlen != y->pxlen ||
comp && !comp(x, y))