c
< 	size = sizeof(struct app_stats_reply) +
---
> 	size = sizeof(struct app_stats_reply) + (app_req.num_ports + 1) * sizeof(struct app_stats_elem);
