Index: kern/uipc_socket.c =================================================================== --- kern/uipc_socket.c +++ kern/uipc_socket.c @@ -1678,6 +1678,13 @@ resid = 0; if (flags & MSG_EOR) top->m_flags |= M_EOR; +#ifdef KERN_TLS + if (tls != NULL) { + ktls_frame(top, tls, &tls_enq_cnt, + tls_rtype); + tls_rtype = TLS_RLTYPE_APP; + } +#endif } else { /* * Copy the data from userland into a mbuf