From: Joshua Rogers Date: Fri, 10 Oct 2025 09:57:16 +0000 (+0800) Subject: bio/dgram: fix local addr clear for i-th message X-Git-Tag: 3.6-PRE-CLANG-FORMAT-WEBKIT~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab085361a924cb02ca51f8f1672e351f3aff92eb;p=thirdparty%2Fopenssl.git 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) --- 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;