networkd: unbreak routing_policy_rule_compare_func()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Sep 2019 17:27:58 +0000 (19:27 +0200)
committerMichael Biebl <biebl@debian.org>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
commit30c24fe458f0f483710d2b0785ec30498398e55d
tree4116cf29dfc6e31a6eeb9fd7b83c38089f425ecc
parentb461b3f6e0c6a3c2e96f147c98b43419110f64d5
networkd: unbreak routing_policy_rule_compare_func()

!r is the same r == 0, so this was short-circuiting the comparison when
streq(a->iff, b->iff) or streq(a->off, b->off). Before the parent commit which
moved those comparisons to the end, this was short-circuiting quite a bit
of the comparison function.

(cherry picked from commit 314ed4f9948bb73300862935546a63294bba1d5c)
(cherry picked from commit 19ac31c989d9facbd90c497f3708ee4d88686de8)

Gbp-Pq: Name networkd-unbreak-routing_policy_rule_compare_func.patch
src/network/networkd-routing-policy-rule.c