1
0
Fork 0
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:
Andy Green 2020-08-18 10:31:35 +01:00
parent b1281f1f3a
commit 630391e0fb

View file

@ -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"))