]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix wrong buffer and version in outgoing msg callback
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 12:33:29 +0000 (20:33 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:07:31 +0000 (19:07 +0200)
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 f7c0fcf0282435687010a34184d4248566008c35)

ssl/d1_lib.c

index d10814bc76d711682db5cd2319eca94b17c9b8f7..7c4f023b5d3208130b9ee3f0b4f23edc8a1b9499 100644 (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);