diff options
author | Martin Willi <martin@strongswan.org> | 2009-05-12 10:56:21 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-05-12 10:56:49 +0200 |
commit | 9dd2b4272891d06a09d121e0cfccb3cf35ffb403 (patch) | |
tree | 66751285ef05cb0d2974ae73084a08a34fac0a58 /src | |
parent | 37974979bcd8d8f7c4afb2472dacff73aaa37a41 (diff) | |
download | strongswan-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.c | 9 |
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 { |