summaryrefslogtreecommitdiffstats
path: root/usr.sbin/unbound/testcode/streamtcp.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2020-10-28 11:30:13 +0000
committersthen <sthen@openbsd.org>2020-10-28 11:30:13 +0000
commite2a0f313491cdca1708bf576ce867c82c87389fc (patch)
tree77a4e5c8b02e818b7c363f6069837cc3e1215ac7 /usr.sbin/unbound/testcode/streamtcp.c
parentUse the function from <linux/io.h> for all "Memory Space" IO. This reduces (diff)
downloadwireguard-openbsd-e2a0f313491cdca1708bf576ce867c82c87389fc.tar.xz
wireguard-openbsd-e2a0f313491cdca1708bf576ce867c82c87389fc.zip
import Unbound 1.12.0, ok tb@
Diffstat (limited to 'usr.sbin/unbound/testcode/streamtcp.c')
-rw-r--r--usr.sbin/unbound/testcode/streamtcp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/unbound/testcode/streamtcp.c b/usr.sbin/unbound/testcode/streamtcp.c
index c49159d33a5..ffdddbe9db4 100644
--- a/usr.sbin/unbound/testcode/streamtcp.c
+++ b/usr.sbin/unbound/testcode/streamtcp.c
@@ -388,11 +388,7 @@ send_em(const char* svr, int udp, int usessl, int noanswer, int onarrival,
SSL_free(ssl);
SSL_CTX_free(ctx);
}
-#ifndef USE_WINSOCK
- close(fd);
-#else
- closesocket(fd);
-#endif
+ sock_close(fd);
sldns_buffer_free(buf);
printf("orderly exit\n");
}