mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
client: handle bio_create failing
This commit is contained in:
parent
5dcb9a6ba3
commit
1177c20a59
1 changed files with 4 additions and 3 deletions
|
@ -258,9 +258,10 @@ start_ws_handshake:
|
|||
#ifdef LWS_OPENSSL_SUPPORT
|
||||
/* we can retry this... just cook the SSL BIO the first time */
|
||||
|
||||
if (wsi->use_ssl && !wsi->ssl) {
|
||||
if (lws_ssl_client_bio_create(wsi))
|
||||
return -1;
|
||||
if (wsi->use_ssl && !wsi->ssl &&
|
||||
lws_ssl_client_bio_create(wsi) < 0) {
|
||||
cce = "bio_create failed";
|
||||
goto bail3;
|
||||
}
|
||||
|
||||
if (wsi->use_ssl) {
|
||||
|
|
Loading…
Add table
Reference in a new issue