From eedb6df889fb69b9c4571be5616fa22e6b62dc7c Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Tue, 14 Oct 2025 08:04:25 +0800 Subject: [PATCH] bss_dgram: set *num_processed = 0 in error path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Joshua Rogers Reviewed-by: Saša Nedvědický Reviewed-by: Frederik Wedel-Heinen Reviewed-by: Todd Short (Merged from https://github.com/openssl/openssl/pull/28913) --- crypto/bio/bss_dgram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index c67077f5714..803744ebfef 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -1742,6 +1742,7 @@ static int dgram_recvmmsg(BIO *b, BIO_MSG *msg, msg[0].peer != NULL ? &slen : NULL); if (ret <= 0) { ERR_raise(ERR_LIB_SYS, get_last_socket_error()); + *num_processed = 0; return 0; } -- 2.47.3