mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
coverity: 62540: explicitly check for NULL even though cannot be
This commit is contained in:
parent
0f173e0bbe
commit
192b76c89b
1 changed files with 8 additions and 0 deletions
|
@ -995,6 +995,14 @@ solo:
|
|||
ads = wsi->stash->cis[CIS_ADDRESS];
|
||||
else
|
||||
ads = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_PEER_ADDRESS);
|
||||
|
||||
/*
|
||||
* Since address must be given at client creation, should not be
|
||||
* possible, but necessary to satisfy coverity
|
||||
*/
|
||||
if (!ads)
|
||||
return NULL;
|
||||
|
||||
#if defined(LWS_WITH_UNIX_SOCK)
|
||||
if (*ads == '+') {
|
||||
wsi->unix_skt = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue