]> 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:07:45 +0000 (11:07 -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)

crypto/bio/bss_dgram.c

index 541c10e45edb730558ad2f3867bc9bfe8d69bfee..e93c229bc8f22a73001301e959af6fbf74f177ac 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;
     }