]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: add missing "else"
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Oct 2020 20:05:33 +0000 (22:05 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Oct 2020 17:36:29 +0000 (02:36 +0900)
src/network/networkd-routing-policy-rule.c

index d2a8768a42117ee4c965270b6c2abc905a45aa49..f35ab3e3dbabdf0812ec855780747d560f7c35b7 100644 (file)
@@ -1687,7 +1687,7 @@ int routing_policy_load_rules(const char *state_file, Set **rules) {
                                         continue;
                                 }
                                 rule->family = r;
-                        } if (STR_IN_SET(a, "from", "to")) {
+                        } else if (STR_IN_SET(a, "from", "to")) {
                                 union in_addr_union *buffer;
                                 uint8_t *prefixlen;