]> 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:08:59 +0000 (19:08 +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 fc94c42c9084f547afc46567ef31473702972114..057fed71df5f540bfaf2003dbf31e662cc0dd390 100644 (file)
@@ -789,7 +789,7 @@ int DTLSv1_listen(SSL *s, 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, s, s->msg_callback_arg);
 
             if ((tmpclient = BIO_ADDR_new()) == NULL) {