coverity 188315: reject wsi with NULL vhost earlier
This commit is contained in:
parent
613ae7921a
commit
ea8c44d799
1 changed files with 4 additions and 1 deletions
|
@ -127,7 +127,10 @@ lws_access_log(struct lws *wsi)
|
|||
*p1 = wsi->access_log.referrer;
|
||||
int l;
|
||||
|
||||
if (wsi->vhost && wsi->vhost->log_fd == (int)LWS_INVALID_FILE)
|
||||
if (!wsi->vhost)
|
||||
return 0;
|
||||
|
||||
if (wsi->vhost->log_fd == (int)LWS_INVALID_FILE)
|
||||
return 0;
|
||||
|
||||
if (!wsi->access_log_pending)
|
||||
|
|
Loading…
Add table
Reference in a new issue