rule->tos = tos;
rule->fwmark = fwmark;
rule->table = table;
- rule->iif = TAKE_PTR(iif);
- rule->oif = TAKE_PTR(oif);
+ rule->iif = iif;
+ rule->oif = oif;
r = set_ensure_allocated(rules, &routing_policy_rule_hash_ops);
if (r < 0)
*ret = rule;
rule = NULL;
+ iif = oif = NULL;
return 0;
}
return log_error_errno(r, "Could not set destination prefix length: %m");
}
- r = sd_netlink_call_async(link->manager->rtnl, m, callback,
- link_netlink_destroy_callback, link, 0, NULL);
+ r = sd_netlink_call_async(link->manager->rtnl, NULL, m, callback,
+ link_netlink_destroy_callback, link, 0, __func__);
if (r < 0)
return log_error_errno(r, "Could not send rtnetlink message: %m");
rule->link = link;
- r = sd_netlink_call_async(link->manager->rtnl, m, callback,
- link_netlink_destroy_callback, link, 0, NULL);
+ r = sd_netlink_call_async(link->manager->rtnl, NULL, m, callback,
+ link_netlink_destroy_callback, link, 0, __func__);
if (r < 0)
return log_error_errno(r, "Could not send rtnetlink message: %m");