]> 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:06:54 +0000 (19:06 +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)

ssl/d1_lib.c

index 0e39518abc72d6be860b931d28ba0efc80d0127b..014657e599b3e30f432ebeaad018aa22627fe95e 100644 (file)
@@ -748,7 +748,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);