Skip to content
Snippets Groups Projects
Commit e4371e72 authored by Andy Green's avatar Andy Green
Browse files

client: handle bio_create failing

parent 6cf0a981
No related branches found
No related tags found
No related merge requests found
......@@ -355,9 +355,10 @@ start_ws_hanshake:
#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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment