projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
617b459
)
BIO_s_connect: Support configuration of non-blocking mode in datagram mode
author
Hugo Landau
<hlandau@openssl.org>
Wed, 9 Aug 2023 16:46:32 +0000
(17:46 +0100)
committer
Hugo Landau
<hlandau@openssl.org>
Fri, 1 Sep 2023 09:45:34 +0000
(10:45 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21715)
crypto/bio/bss_conn.c
patch
|
blob
|
history
diff --git
a/crypto/bio/bss_conn.c
b/crypto/bio/bss_conn.c
index 865a4d4cd429ee134fc4a6a8b02e3aa7d4441bc8..0f9cba06da388c867d60d5bbb8e100021e836113 100644
(file)
--- a/
crypto/bio/bss_conn.c
+++ b/
crypto/bio/bss_conn.c
@@
-610,6
+610,10
@@
static long conn_ctrl(BIO *b, int cmd, long num, void *ptr)
data->connect_mode |= BIO_SOCK_NONBLOCK;
else
data->connect_mode &= ~BIO_SOCK_NONBLOCK;
+
+ if (data->dgram_bio != NULL)
+ ret = BIO_set_nbio(data->dgram_bio, num);
+
break;
#if defined(TCP_FASTOPEN) && !defined(OPENSSL_NO_TFO)
case BIO_C_SET_TFO: