]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[tls] Send closure alert only when we are initiating the closure
authorMichael Brown <mcb30@ipxe.org>
Mon, 6 Jul 2026 11:14:34 +0000 (12:14 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 6 Jul 2026 11:15:30 +0000 (12:15 +0100)
commit2476e43bcf304f61704bb41bfde67dfd862cd091
treeb0c1b0b3c81c76833beeced0a894eafe978d487f
parentca51c16232cfb02e1d2e23e8e876b1dca945a390
[tls] Send closure alert only when we are initiating the closure

When the TLS connection is closed by the underlying socket, the
closure alert will not be able to be sent.  This currently results in
a harmless but mildly irritating error message when debugging is
enabled.

Fix by sending the closure alert only when we are actively choosing to
close the connection.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tls.c