]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: also process RTM_NEWRULE or RTM_DELRULE message which does not contain src...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Sep 2020 19:59:39 +0000 (04:59 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Sep 2020 09:57:07 +0000 (18:57 +0900)
Fixes #16784.

src/network/networkd-manager.c

index 329020c451343eccb62800290b1b7cffdc42c33d..dbbc6b64bcc753d2f14dc81270e82b9b99d4c960 100644 (file)
@@ -1082,9 +1082,6 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
                 assert_not_reached("Received rule message with unsupported address family");
         }
 
-        if (tmp->from_prefixlen == 0 && tmp->to_prefixlen == 0)
-                return 0;
-
         r = sd_rtnl_message_routing_policy_rule_get_flags(message, &flags);
         if (r < 0) {
                 log_warning_errno(r, "rtnl: received rule message without valid flag, ignoring: %m");