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:
parent
146858fb54
commit
908d259a47
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue