]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
bio/dgram: fix local addr clear for i-th message
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 09:57:16 +0000 (17:57 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Oct 2025 15:51:55 +0000 (17:51 +0200)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Fixes #28871

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28808)

(cherry picked from commit ad26aee904413119c21ae1dafb10a156d0474e72)

crypto/bio/bss_dgram.c

index 8c01461812a7b8e74e88ad55f7eb86a08c3bc344..1534dcb2a8f828cd5e46bef5cba4adc3da86ba33 100644 (file)
@@ -1600,7 +1600,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;