]> 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 14:41:29 +0000 (10:41 -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)

crypto/bio/bss_dgram.c

index c67077f5714c8a92e13eea0784ef8337422e4367..803744ebfefc301725e8c0a96acdf97bd21bdfc1 100644 (file)
@@ -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;
     }