mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
minimal ring: keep coverity happy for NULL pointer possibility
This commit is contained in:
parent
794c70cdc0
commit
95e31cb126
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,10 @@ cull_lagging_clients(struct per_vhost_data__minimal *vhd)
|
|||
|
||||
} lws_end_foreach_llp_safe(ppss);
|
||||
|
||||
/* it would mean we lost track of oldest... but Coverity insists */
|
||||
if (!old_pss)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Let's recover (ie, free up) all the ring slots between the
|
||||
* original oldest's last one and the "worst" survivor.
|
||||
|
|
Loading…
Add table
Reference in a new issue