1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Coverity 189190: client: deal with NULL piggyback wsi

This commit is contained in:
Andy Green 2018-04-04 10:40:53 +08:00
parent 3c9924bf73
commit a7db6e4fd4

View file

@ -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.