aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-01-14 08:10:16 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-01-14 08:10:16 +0000
commit67701cfdce402755f635659faaa7cb1eff67953c (patch)
tree11975e6e5f85c228c3d29db1202a941f65e7b6ec
parent356bbeca7d08f2ab71b7536b87df2956ec0d5f9c (diff)
downloadstrongswan-67701cfdce402755f635659faaa7cb1eff67953c.tar.bz2
strongswan-67701cfdce402755f635659faaa7cb1eff67953c.tar.xz
fixed broken listing of connections in ipsec statusall
-rw-r--r--src/charon/plugins/stroke/stroke_list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c
index f9e6567b9..15627cdd7 100644
--- a/src/charon/plugins/stroke/stroke_list.c
+++ b/src/charon/plugins/stroke/stroke_list.c
@@ -265,7 +265,7 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo
if (all)
{
peer_cfg_t *peer_cfg;
- char *plugin, *name;
+ char *plugin, *pool;
host_t *host;
u_int32_t dpd;
time_t uptime = time(NULL) - this->uptime;
@@ -291,14 +291,14 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo
fprintf(out, "\n");
enumerator = this->attribute->create_pool_enumerator(this->attribute);
- while (enumerator->enumerate(enumerator, &name, &size, &online, &offline))
+ while (enumerator->enumerate(enumerator, &pool, &size, &online, &offline))
{
if (first)
{
first = FALSE;
fprintf(out, "Virtual IP pools (size/online/offline):\n");
}
- fprintf(out, " %s: %lu/%lu/%lu\n", name, size, online, offline);
+ fprintf(out, " %s: %lu/%lu/%lu\n", pool, size, online, offline);
}
enumerator->destroy(enumerator);