mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 05:31:44 +00:00
plugins/corerouter: use correct goto label
After cwd has been allocated we should exit through end0. Spotted by Coverity, CID #971054.
This commit is contained in:
@@ -927,7 +927,7 @@ void corerouter_send_stats(struct uwsgi_corerouter *ucr) {
|
||||
char *cwd = uwsgi_get_cwd();
|
||||
if (uwsgi_stats_keyval_comma(us, "cwd", cwd)) goto end0;
|
||||
|
||||
if (uwsgi_stats_keylong_comma(us, "active_sessions", (unsigned long long) ucr->active_sessions)) goto end;
|
||||
if (uwsgi_stats_keylong_comma(us, "active_sessions", (unsigned long long) ucr->active_sessions)) goto end0;
|
||||
|
||||
if (uwsgi_stats_key(us , ucr->short_name)) goto end0;
|
||||
if (uwsgi_stats_list_open(us)) goto end0;
|
||||
|
||||
Reference in New Issue
Block a user