core/emperor: check return value of uwsgi_stats_str

Reported by Coverity as CID #970959
This commit is contained in:
Riccardo Magliocchetti
2013-12-28 15:45:05 +01:00
parent 6d91b7317d
commit 752252c9e4
+2 -1
View File
@@ -1746,7 +1746,8 @@ void emperor_send_stats(int fd) {
goto end0;
struct uwsgi_emperor_scanner *ues = emperor_scanners;
while (ues) {
uwsgi_stats_str(us, ues->arg);
if (uwsgi_stats_str(us, ues->arg))
goto end0;
ues = ues->next;
if (ues) {
if (uwsgi_stats_comma(us))