From: Ondrej Filip Date: Wed, 8 Nov 2000 17:06:35 +0000 (+0000) Subject: Bugfix in iface_patts_equal. X-Git-Tag: v1.2.0~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0639f7263a9a73cce6948cad23cd2d4858d36c5b;p=thirdparty%2Fbird.git Bugfix in iface_patts_equal. When both patterns were NULL strcmp it sigfaulted. --- diff --git a/nest/iface.c b/nest/iface.c index 9c884a0cf..5255cff29 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))