mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Bugfix in iface_patts_equal.
When both patterns were NULL strcmp it sigfaulted.
This commit is contained in:
parent
482bbc7396
commit
0639f7263a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user