Page MenuHomeFreeBSD

D37693.1796133137.diff
No OneTemporary

Authored By
Unknown
Size
622 B
Referenced Files
None
Subscribers
None

D37693.1796133137.diff

diff --git a/tests/sys/kern/ktls_test.c b/tests/sys/kern/ktls_test.c
--- a/tests/sys/kern/ktls_test.c
+++ b/tests/sys/kern/ktls_test.c
@@ -1893,7 +1893,13 @@
rv = write(sockets[1], outbuf, outbuf_len);
ATF_REQUIRE_INTEQ((ssize_t)outbuf_len, rv);
- ATF_REQUIRE(shutdown(sockets[1], SHUT_WR) == 0);
+ /*
+ * The other end may notice the error and drop the connection
+ * before this executes resulting in shutdown() failing with
+ * ENOTCONN. Ignore this error if it occurs.
+ */
+ if (shutdown(sockets[1], SHUT_WR) != 0)
+ ATF_REQUIRE_ERRNO(ENOTCONN, true);
ktls_receive_tls_error(sockets[0], EMSGSIZE);

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 1, 1:52 PM (23 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42125685
Default Alt Text
D37693.1796133137.diff (622 B)

Event Timeline