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:
parent
4739c3234b
commit
abcaefc1ff
1 changed files with 2 additions and 1 deletions
|
@ -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].
|
||||
|
|
Loading…
Add table
Reference in a new issue