sd-netlink: do not set action for RTM_GETRULE message

Otherwise, when NETLINK_GET_STRICT_CHK socket option is enabled, no rule
will be dumped.
This commit is contained in:
Yu Watanabe
2021-05-25 08:26:00 +09:00
parent f318f64388
commit 3ca619061d
2 changed files with 3 additions and 6 deletions
-1
View File
@@ -858,7 +858,6 @@ int sd_rtnl_message_new_routing_policy_rule(sd_netlink *rtnl, sd_netlink_message
frh = NLMSG_DATA((*ret)->hdr);
frh->family = ifal_family;
frh->action = FR_ACT_TO_TBL;
return 0;
}