summaryrefslogtreecommitdiff
path: root/tests/port
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-03-29 18:36:01 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-03-29 18:36:01 +0200
commiteedee6a0d1c8fd498029d8154fc025154427bf7b (patch)
tree68b50871de2bc6b16e27072f6f61289a3ae3b88c /tests/port
parenta709cc416a59b3e80ecf2969de6d2fc04734ebf9 (diff)
downloadwolfbones-eedee6a0d1c8fd498029d8154fc025154427bf7b.tar.gz
wolfbones-eedee6a0d1c8fd498029d8154fc025154427bf7b.tar.bz2
more WSACleanup in test_getaddrinfo
Diffstat (limited to 'tests/port')
-rw-r--r--tests/port/test_getaddrinfo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/port/test_getaddrinfo.c b/tests/port/test_getaddrinfo.c
index 530b518..e0665d3 100644
--- a/tests/port/test_getaddrinfo.c
+++ b/tests/port/test_getaddrinfo.c
@@ -31,6 +31,9 @@ int main( void ) {
if( error != 0 ) {
fprintf( stderr, "getaddrinfo failed: %s (%d)\n",
gai_strerror( error ), error );
+#ifdef _WIN32
+ WSACleanup( );
+#endif
return EXIT_FAILURE;
}
@@ -44,6 +47,9 @@ int main( void ) {
if( error != 0 ) {
fprintf( stderr, "getnameinfo failed: %s (%d)\n",
gai_strerror( error ), error );
+#ifdef _WIN32
+ WSACleanup( );
+#endif
return EXIT_FAILURE;
}