summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c
diff options
context:
space:
mode:
authorkenjiro <>2026-08-21 02:23:33 +0000
committerkenjiro <>2026-08-21 02:23:33 +0000
commitaadc1d67e4c39bc3840c965d12277e1d7f68e948 (patch)
tree7844562c788b1a87efcc7bf1cc8ef932c3c44dce /src/lib/libc/stdlib/reallocarray.c
parent70897123d5abbd10ccf1626cda82a140db125fc8 (diff)
downloadopenbsd-aadc1d67e4c39bc3840c965d12277e1d7f68e948.tar.gz
openbsd-aadc1d67e4c39bc3840c965d12277e1d7f68e948.tar.bz2
openbsd-aadc1d67e4c39bc3840c965d12277e1d7f68e948.zip
Allocate TLS 1.3 receive buffers lazily
The receive buffer is not used for records created for sending. Avoid allocating a maximum-sized buffer in tls13_record_new() and instead allocate a header-sized buffer when tls13_record_recv() is first called. The buffer will grow as needed once the record length is known. This avoids an unnecessary allocation for outgoing records and reduces the initial allocation size for incoming records. ok tb jsing
Diffstat (limited to 'src/lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions