From 01e4d07fb8e5396fc2d75209c9423cbd2a252f9f Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sat, 26 Jan 2013 18:39:37 +0100 Subject: [PATCH] plugins/corerouter: use correct goto label After cwd has been allocated we should exit through end0. Spotted by Coverity, CID #971054. --- plugins/corerouter/corerouter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/corerouter/corerouter.c b/plugins/corerouter/corerouter.c index 3b30463e..a499daca 100644 --- a/plugins/corerouter/corerouter.c +++ b/plugins/corerouter/corerouter.c @@ -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;