From dec100775615b4e70cf01f334d8fba31c4f2e748 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 13 Jul 2019 11:39:32 -0700 Subject: [PATCH] COVA10141: add additional deref checks --- 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 9612b5700..a404f1a8f 100644 --- a/lib/core-net/close.c +++ b/lib/core-net/close.c @@ -342,7 +342,7 @@ just_kill_connection: if (!wsi->told_user_closed && wsi->user_space && wsi->protocol_bind_balance && wsi->protocol) { lwsl_debug("%s: %p: DROP_PROTOCOL %s\n", __func__, wsi, - wsi->protocol->name); + wsi->protocol ? wsi->protocol->name: "NULL"); wsi->protocol->callback(wsi, wsi->role_ops->protocol_unbind_cb[ !!lwsi_role_server(wsi)],