aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-05-12 10:56:21 +0200
committerMartin Willi <martin@strongswan.org>2009-05-12 10:56:49 +0200
commit9dd2b4272891d06a09d121e0cfccb3cf35ffb403 (patch)
tree66751285ef05cb0d2974ae73084a08a34fac0a58 /src
parent37974979bcd8d8f7c4afb2472dacff73aaa37a41 (diff)
downloadstrongswan-9dd2b4272891d06a09d121e0cfccb3cf35ffb403.tar.bz2
strongswan-9dd2b4272891d06a09d121e0cfccb3cf35ffb403.tar.xz
do not report increasing rekey times if rekeying currently active
Diffstat (limited to 'src')
-rw-r--r--src/charon/plugins/stroke/stroke_list.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c
index b253c8abb..d88c3c642 100644
--- a/src/charon/plugins/stroke/stroke_list.c
+++ b/src/charon/plugins/stroke/stroke_list.c
@@ -210,7 +210,14 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
rekey = child_sa->get_lifetime(child_sa, FALSE);
if (rekey)
{
- fprintf(out, "in %V", &now, &rekey);
+ if (now > rekey)
+ {
+ fprintf(out, "active");
+ }
+ else
+ {
+ fprintf(out, "in %V", &now, &rekey);
+ }
}
else
{