From 2c143ed224cb6fb11a1e2d859f4c6b1a20655797 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 16 Jul 2019 10:02:54 -0700 Subject: [PATCH] COVA10117: help Coverity understand the address cannot be NULL --- lib/roles/http/client/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/roles/http/client/client.c b/lib/roles/http/client/client.c index e66805436..7dc1dc215 100644 --- a/lib/roles/http/client/client.c +++ b/lib/roles/http/client/client.c @@ -826,6 +826,9 @@ lws_client_interpret_server_handshake(struct lws *wsi) } #endif + if (!ads) /* make coverity happy */ + goto bail3; + if (!lws_client_reset(&wsi, ssl, ads, port, path, ads)) { /* there are two ways to fail out with NULL return... * simple, early problem where the wsi is intact, or