1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

COVA10745: lws_protocol_init can fail

This commit is contained in:
Andy Green 2019-07-13 12:04:21 -07:00
parent 4739c3234b
commit abcaefc1ff

View file

@ -53,7 +53,8 @@ lws_client_connect_via_info(const struct lws_client_connect_info *i)
return NULL;
if (!i->context->protocol_init_done)
lws_protocol_init(i->context);
if (lws_protocol_init(i->context))
return NULL;
/*
* If we have .local_protocol_name, use it to select the local protocol
* handler to bind to. Otherwise use .protocol if http[s].