Use CBS_write_bytes() instead of manual unpacking of a CBS and assigning
authortb <tb@openbsd.org>
Tue, 7 Jun 2022 17:49:22 +0000 (17:49 +0000)
committertb <tb@openbsd.org>
Tue, 7 Jun 2022 17:49:22 +0000 (17:49 +0000)
commitdcb88a9cc755967205040f811060ec1efb7fbf42
treeb493848d86f253dc982749baedc2cd498fa2241a
parentef6795cf9dac9ed0aef73e2b5e0f70c7939e2c3e
Use CBS_write_bytes() instead of manual unpacking of a CBS and assigning
length and using memcpy(). This also provides a missing overflow check
(which is done by the only caller, however).

ok jsing
lib/libssl/ssl_sess.c