Fix wrong buffer and version in outgoing msg callback

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28816)

(cherry picked from commit f7c0fcf028)
This commit is contained in:
Joshua Rogers 2025-10-10 20:33:29 +08:00 committed by Tomas Mraz
parent fbe1da31fa
commit 467dc70dfb
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ int DTLSv1_listen(SSL *ssl, BIO_ADDR *client)
3);
if (s->msg_callback)
s->msg_callback(1, 0, SSL3_RT_HEADER, buf,
s->msg_callback(1, version, SSL3_RT_HEADER, wbuf,
DTLS1_RT_HEADER_LENGTH, ssl,
s->msg_callback_arg);