mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity: 50320: show coverity protocol can always be found by name
This commit is contained in:
parent
b1281f1f3a
commit
630391e0fb
1 changed files with 4 additions and 0 deletions
|
@ -1703,6 +1703,10 @@ lws_http_action(struct lws *wsi)
|
|||
lws_vhost_name_to_protocol(
|
||||
wsi->a.vhost, hit->protocol);
|
||||
|
||||
/* coverity */
|
||||
if (!pp)
|
||||
return 1;
|
||||
|
||||
lwsi_set_state(wsi, LRS_DOING_TRANSACTION);
|
||||
|
||||
if (lws_bind_protocol(wsi, pp, "http_action HTTP"))
|
||||
|
|
Loading…
Add table
Reference in a new issue