network: also process RTM_NEWRULE or RTM_DELRULE message which does not contain src and dst addresses

Fixes #16784.
This commit is contained in:
Yu Watanabe 2020-09-09 04:59:39 +09:00
parent bd1000b4a0
commit 2102d33cfb
1 changed files with 0 additions and 3 deletions

View 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");