From ab085361a924cb02ca51f8f1672e351f3aff92eb Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Fri, 10 Oct 2025 17:57:16 +0800 Subject: [PATCH] bio/dgram: fix local addr clear for i-th message Signed-off-by: Joshua Rogers Fixes #28871 Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/28808) (cherry picked from commit ad26aee904413119c21ae1dafb10a156d0474e72) --- crypto/bio/bss_dgram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index 50c75a2aadc..a32cfa6cf47 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -1602,7 +1602,7 @@ static int dgram_recvmmsg(BIO *b, BIO_MSG *msg, * address, as for OS X and Windows in some circumstances * (see below). */ - BIO_ADDR_clear(msg->local); + BIO_ADDR_clear(BIO_MSG_N(msg, stride, i).local); } *num_processed = (size_t)ret; -- 2.47.3