From 630391e0fb9bcb5ca623ede079ce43634daee150 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 18 Aug 2020 10:31:35 +0100 Subject: [PATCH] coverity: 50320: show coverity protocol can always be found by name --- lib/roles/http/server/server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/roles/http/server/server.c b/lib/roles/http/server/server.c index 8c0fc784d..781e5d4aa 100644 --- a/lib/roles/http/server/server.c +++ b/lib/roles/http/server/server.c @@ -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"))