2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Fix copy&paste error in setsockopt_off

Because of copy&paste error the setsockopt_off macro would enable
the socket option instead of disabling it.
This commit is contained in:
Ondřej Surý
2021-06-02 17:41:17 +02:00
parent 5e1a48a605
commit f14d870d15

View File

@@ -2985,7 +2985,7 @@ isc__nm_closesocket(uv_os_sock_t sock) {
setsockopt(socket, level, name, &(int){ 1 }, sizeof(int))
#define setsockopt_off(socket, level, name) \
setsockopt(socket, level, name, &(int){ 1 }, sizeof(int))
setsockopt(socket, level, name, &(int){ 0 }, sizeof(int))
isc_result_t
isc__nm_socket_freebind(uv_os_sock_t fd, sa_family_t sa_family) {