diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2025-09-30 19:12:11 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2025-09-30 19:13:17 +0000 |
commit | 8e12a5c4eb3507846b507d0afe87d115af41df40 (patch) | |
tree | 2f170ce535a803881e0df7dd2ab3e7ccb5fac99d /ssl/record/methods/tls_common.c | |
parent | aed904c48f330dc76da942a8ee2d6eef9d11f572 (diff) |
Diffstat (limited to 'ssl/record/methods/tls_common.c')
-rw-r--r-- | ssl/record/methods/tls_common.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ssl/record/methods/tls_common.c b/ssl/record/methods/tls_common.c index 80d4477bd0c0..b9c79099462d 100644 --- a/ssl/record/methods/tls_common.c +++ b/ssl/record/methods/tls_common.c @@ -1,5 +1,5 @@ /* - * Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2022-2025 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -1093,9 +1093,12 @@ int tls13_common_post_process_record(OSSL_RECORD_LAYER *rl, TLS_RL_RECORD *rec) return 0; } - if (rl->msg_callback != NULL) - rl->msg_callback(0, rl->version, SSL3_RT_INNER_CONTENT_TYPE, &rec->type, - 1, rl->cbarg); + if (rl->msg_callback != NULL) { + unsigned char ctype = (unsigned char)rec->type; + + rl->msg_callback(0, rl->version, SSL3_RT_INNER_CONTENT_TYPE, &ctype, + 1, rl->cbarg); + } /* * TLSv1.3 alert and handshake records are required to be non-zero in |