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

coverity: 305064: clear false positive by needless NULL check

Add needless check so we don't keep getting the same coverity hit from different people
This commit is contained in:
Andy Green 2020-08-14 07:02:07 +01:00
parent 146858fb54
commit 908d259a47

View file

@ -907,6 +907,13 @@ lws_client_connect_2_dnsreq(struct lws *wsi)
adsin = lws_wsi_client_stash_item(wsi, CIS_ADDRESS,
_WSI_TOKEN_CLIENT_PEER_ADDRESS);
if (!adsin)
/*
* This cannot happen since user code must provide the client
* address to get this far, it's here to satisfy Coverity
*/
return NULL;
switch (lws_vhost_active_conns(wsi, &w, adsin)) {
case ACTIVE_CONNS_SOLO:
break;