From: Joshua Rogers Date: Tue, 14 Oct 2025 00:04:25 +0000 (+0800) Subject: bss_dgram: set *num_processed = 0 in error path X-Git-Tag: 3.3-PRE-CLANG-FORMAT-WEBKIT~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=593227550bc5385d2d22aeb506eecb36cb97887f;p=thirdparty%2Fopenssl.git bss_dgram: set *num_processed = 0 in error path 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) (cherry picked from commit eedb6df889fb69b9c4571be5616fa22e6b62dc7c) (cherry picked from commit 3d9e15c6ad3ecf9f182789c321ca316d074bd203) (cherry picked from commit 98b4dd9bfeccf6a51771d63373c9a7a913992d59) --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index 541c10e45ed..e93c229bc8f 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -1740,6 +1740,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; }