From ace1f432f38fc1fb08c670574d46217ca90dc5d4 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 7 Aug 2019 07:11:08 +0100 Subject: [PATCH] COVA14522: extra check for valid protocol --- lib/core-net/close.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core-net/close.c b/lib/core-net/close.c index eceec6cf4..23c1dbb2b 100644 --- a/lib/core-net/close.c +++ b/lib/core-net/close.c @@ -468,7 +468,7 @@ just_kill_connection: if (!wsi->protocol && wsi->vhost && wsi->vhost->protocols) pro = &wsi->vhost->protocols[0]; - if (!wsi->upgraded_to_http2 || !lwsi_role_client(wsi)) + if (pro && (!wsi->upgraded_to_http2 || !lwsi_role_client(wsi))) /* * The network wsi for a client h2 connection shouldn't * call back for its role: the child stream connections