do not report increasing rekey times if rekeying currently active

This commit is contained in:
Martin Willi
2009-05-12 10:56:49 +02:00
parent 37974979bc
commit 9dd2b42728
+8 -1
View 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
{