openssl/crypto/bio
Richard Levitte f6483fc2db BIO_s_connect: add an error state and use it
If no connection could be made, addr_iter will eventually end up being
NULL, and if the user didn't check the returned error value, the
BIO_CONN_S_CONNECT code will be performed again and will crash.

So instead, we add a state BIO_CONN_S_CONNECT_ERROR that we enter into
when we run out of addresses to try.  That state will just simply say
"error" back, until the user does something better with the BIO, such
as free it or reset it.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10333)
2019-11-05 22:17:12 +01:00
..
b_addr.c Fix unused goto label gcc warning 2019-10-10 19:09:28 +02:00
b_dump.c Reorganize local header files 2019-09-27 23:58:06 +02:00
b_print.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
b_sock.c Reorganize local header files 2019-09-27 23:58:06 +02:00
b_sock2.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bf_buff.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bf_lbuf.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bf_nbio.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bf_null.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bio_cb.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bio_err.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00
bio_lib.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bio_local.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
bio_meth.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_acpt.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_bio.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_conn.c BIO_s_connect: add an error state and use it 2019-11-05 22:17:12 +01:00
bss_dgram.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_fd.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_file.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_log.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_mem.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_null.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bss_sock.c Reorganize local header files 2019-09-27 23:58:06 +02:00
build.info Adapt bf_lbuf for opaque BIO 2016-03-30 04:35:14 +02:00