From 9dd2b4272891d06a09d121e0cfccb3cf35ffb403 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Tue, 12 May 2009 10:56:21 +0200 Subject: [PATCH] do not report increasing rekey times if rekeying currently active --- src/charon/plugins/stroke/stroke_list.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 {