HomeFreeBSD

Properly handle a closed TLS socket with pending receive data.

Description

Properly handle a closed TLS socket with pending receive data.

If the remote end closes a TLS socket and the socket buffer still
contains not-yet-decrypted TLS records but no decrypted TLS records,
soreceive needs to block or fail with EWOULDBLOCK. Previously it was
trying to return data and dereferencing a NULL pointer.

Reviewed by: np
Sponsored by: Chelsio
Differential Revision: https://reviews.freebsd.org/D25838

Details

Provenance
jhbAuthored on Jul 29 2020, 11:24 PM
Parents
rGadeebf4cd47c: regex(3): Interpret many escaped ordinary characters as EESCAPE
Branches
Unknown
Tags
Unknown

Event Timeline