From a7db6e4fd4ad84a62995f3ac20ce978bd8809452 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 4 Apr 2018 10:40:53 +0800 Subject: [PATCH] Coverity 189190: client: deal with NULL piggyback wsi --- lib/client/client-handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client/client-handshake.c b/lib/client/client-handshake.c index 18b23ddc..c1bfb54a 100644 --- a/lib/client/client-handshake.c +++ b/lib/client/client-handshake.c @@ -474,7 +474,8 @@ create_new_conn: #endif send_hs: - if (!lws_dll_is_null(&wsi->dll_client_transaction_queue)) { + if (wsi_piggy && + !lws_dll_is_null(&wsi->dll_client_transaction_queue)) { /* * We are pipelining on an already-established connection... * we can skip tls establishment.