The logic bugs here were causing bridge.c to do too much work adding and
deleting interfaces unnecessarily and perhaps in some circumstances getting
the set of interfaces wrong entirely.
}
for (i = j = 0; i < a->n && j < b->n; ) {
int cmp = strcmp(a->names[i], b->names[j]);
- if (cmp > 0) {
+ if (cmp < 0) {
if (a_only) {
svec_add(a_only, a->names[i]);
}
i++;
- } else if (cmp < 0) {
+ } else if (cmp > 0) {
if (b_only) {
svec_add(b_only, b->names[j]);
}