Commit 0639f726 authored by Ondřej Filip's avatar Ondřej Filip

Bugfix in iface_patts_equal.

When both patterns were NULL strcmp it sigfaulted.
parent 482bbc73
......@@ -578,7 +578,8 @@ iface_patts_equal(list *a, list *b, int (*comp)(struct iface_patt *, struct ifac
y = HEAD(*b);
while (x-> && y->
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))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment