]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: unbreak routing_policy_rule_compare_func() 13583/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Sep 2019 17:27:58 +0000 (19:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Sep 2019 17:27:58 +0000 (19:27 +0200)
commit314ed4f9948bb73300862935546a63294bba1d5c
tree1cf8f67583dc9065fff7f8b064cce446b9300aec
parenta811fb8b377268566704514e2b05d1b9cb98e5ac
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.
src/network/networkd-routing-policy-rule.c