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

adopt: coverity: add pointless vh NULL check

The wsi is always created on a valid vhost.  Add a needless NULL check on
it to satisfy coverity.
This commit is contained in:
Andy Green 2021-11-08 10:00:17 +00:00
parent b0cd8f6703
commit 11ba0b713b

View file

@ -133,6 +133,9 @@ __lws_adopt_descriptor_vhost1(struct lws_vhost *vh, lws_adoption_type type,
* we initialize it, it may become "live" concurrently unexpectedly...
*/
if (!vh)
return NULL;
lws_context_assert_lock_held(vh->context);
n = -1;