]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
bss_dgram: set *num_processed = 0 in error path
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Tue, 14 Oct 2025 00:04:25 +0000 (08:04 +0800)
committerTodd Short <todd.short@me.com>
Mon, 27 Oct 2025 15:13:51 +0000 (11:13 -0400)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/28913)

(cherry picked from commit eedb6df889fb69b9c4571be5616fa22e6b62dc7c)
(cherry picked from commit 3d9e15c6ad3ecf9f182789c321ca316d074bd203)
(cherry picked from commit 98b4dd9bfeccf6a51771d63373c9a7a913992d59)
(cherry picked from commit 593227550bc5385d2d22aeb506eecb36cb97887f)

crypto/bio/bss_dgram.c

index 7042b93f872198c64b987510a8b7be6e933c164f..e05dcfdfb6b00f19423dcda4ee228ddea8b7e579 100644 (file)
@@ -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;
     }