summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_echo_tcp_socket_options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_echo_tcp_socket_options.c b/tests/test_echo_tcp_socket_options.c
index 8ec631f..49b1187 100644
--- a/tests/test_echo_tcp_socket_options.c
+++ b/tests/test_echo_tcp_socket_options.c
@@ -118,7 +118,6 @@ static void test_bind_ipv6_only(void **state)
case AF_INET:
assert_int_equal(rc, -1);
- close(s);
break;
case AF_INET6:
assert_int_equal(rc, 0);
@@ -126,11 +125,12 @@ static void test_bind_ipv6_only(void **state)
rc = bind(s, ri->ai_addr, ri->ai_addrlen);
assert_int_equal(rc, 0);
- close(s);
break;
default:
break;
}
+
+ close(s);
}
freeaddrinfo(res);
}