]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: Don't free the early data buffer too early master
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 15 Jun 2026 18:29:23 +0000 (20:29 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 15 Jun 2026 17:40:43 +0000 (19:40 +0200)
commit8e1c51378e9949ae5f87a0cd107d9f388b0ba5c0
treed6256a417dfc5029fa28392f61a2115f230fa90f
parent33c765fc59886d530ea40e67aa6df8c24602e914
BUG/MEDIUM: ssl: Don't free the early data buffer too early

When 0RTT is enabled, a temporary buffer for early data is used. We read
from it first when the mux asks for data, and then we free it when it is
empty, but that is not right, because maybe we have more early data to
receive, and then we no longer have any buffer to store them, and that
will eventually end up with the connection closed in error.
To fix that, as long as we haven't received all the early data yet, just
reset the buffer, instead of freeing it.
This should fix github issue #3416
This should be backported up to 2.8.
src/ssl_sock.c