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:
parent
9af2820694
commit
1e59b5455e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user