]> git.ipfire.org Git - thirdparty/openssl.git/commit
tls_common.c: Handle inner content type properly on Big Endian
authorTomas Mraz <tomas@openssl.org>
Sat, 20 Sep 2025 14:45:50 +0000 (16:45 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 23 Sep 2025 14:39:02 +0000 (16:39 +0200)
commitea373a3e533eb8752cf980dd7dcf627e3fb25557
tree6e3624a6a3a993082adeeb5d1a82ff284cedc7ff
parent7a8cbd1c4ffd04ad458cd27da2c9f3a9b7d378c0
tls_common.c: Handle inner content type properly on Big Endian

When passing the inner content type to msg_callback,
the lowest byte of rec->type needs to be passed instead
of directly passing the rec->type otherwise the value is
incorrect on Big Endian platforms.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28627)

(cherry picked from commit 2edf021463518d9af905b1b03f952ea643b3fb9b)
ssl/record/methods/tls_common.c