do not report increasing rekey times if rekeying currently active
authorMartin Willi <martin@strongswan.org>
Tue, 12 May 2009 08:56:21 +0000 (10:56 +0200)
committerMartin Willi <martin@strongswan.org>
Tue, 12 May 2009 08:56:49 +0000 (10:56 +0200)
src/charon/plugins/stroke/stroke_list.c

index b253c8a..d88c3c6 100644 (file)
@@ -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
                        {