diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2020-10-27 15:09:16 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2020-10-27 15:09:16 +0000 |
| commit | 4cb89f2eee3bb358f0491932ab0498b5319f4229 (patch) | |
| tree | fc2691469564e7d7e552247f2b2c6e04dd7efb8a /testcode/streamtcp.c | |
| parent | 7973006f41cdaf144441d1a39f9f075053435e2f (diff) | |
Vendor import of Unbound 1.12.0.vendor/unbound/1.12.0
Notes
svn path=/vendor/unbound/dist/; revision=367082
svn path=/vendor/unbound/1.12.0/; revision=367083; tag=vendor/unbound/1.12.0
Diffstat (limited to 'testcode/streamtcp.c')
| -rw-r--r-- | testcode/streamtcp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/testcode/streamtcp.c b/testcode/streamtcp.c index c49159d33a58..ffdddbe9db48 100644 --- a/testcode/streamtcp.c +++ b/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"); } |
