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:
parent
b0cd8f6703
commit
11ba0b713b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue