1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

bpf: use more TAKE_FD()

This commit is contained in:
Lennart Poettering 2019-06-20 14:41:09 +02:00 committed by Yu Watanabe
parent 9af2820694
commit 1e59b5455e

View File

@ -430,10 +430,8 @@ static int bpf_firewall_prepare_access_maps(
return r;
}
*ret_ipv4_map_fd = ipv4_map_fd;
*ret_ipv6_map_fd = ipv6_map_fd;
ipv4_map_fd = ipv6_map_fd = -1;
*ret_ipv4_map_fd = TAKE_FD(ipv4_map_fd);
*ret_ipv6_map_fd = TAKE_FD(ipv6_map_fd);
return 0;
}