1
0
Fork 0
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:
Andy Green 2020-08-18 09:08:03 +01:00
parent 0f173e0bbe
commit 192b76c89b

View file

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