1
0
Fork 0
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:
Andy Green 2018-06-03 17:09:27 +08:00
parent 794c70cdc0
commit 95e31cb126

View file

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