openssl/crypto/bio
Joshua Rogers 1c4f7b1035 crypto/bio/bss_acpt: reset accept_sock and b->num after close in ACPT_S_LISTEN failures
On BIO_listen or BIO_sock_info failure we close the socket but leave
accept_sock and b->num pointing at the old fd. Later cleanup can double
close.

Set both to INVALID_SOCKET immediately after BIO_closesocket.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28904)
2025-11-24 09:03:43 -05:00
..
bf_buff.c
bf_lbuf.c
bf_nbio.c
bf_null.c
bf_prefix.c
bf_readbuff.c
bio_addr.c
bio_cb.c
bio_dump.c
bio_err.c
bio_lib.c
bio_local.h
bio_meth.c
bio_print.c
bio_sock.c bio_sock: fix inverted BIO_lookup return value check 2025-10-17 19:26:50 +02:00
bio_sock2.c ktls: move ktls_enable() within ktls_start() 2025-10-14 16:47:27 +02:00
bss_acpt.c crypto/bio/bss_acpt: reset accept_sock and b->num after close in ACPT_S_LISTEN failures 2025-11-24 09:03:43 -05:00
bss_bio.c
bss_conn.c ktls: move ktls_enable() within ktls_start() 2025-10-14 16:47:27 +02:00
bss_core.c
bss_dgram.c bss_dgram: set *num_processed = 0 in error path 2025-10-27 10:41:29 -04:00
bss_dgram_pair.c
bss_fd.c
bss_file.c crypto/bio/bss_file.c: add missing cast in format arg in ERR_raise_data() 2025-09-16 09:41:38 -04:00
bss_log.c
bss_mem.c
bss_null.c
bss_sock.c Rollup fixes for NonStop builds. 2025-11-05 16:08:06 -05:00
build.info
ossl_core_bio.c