aboutsummaryrefslogtreecommitdiffstats
path: root/src/pluto/state.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-07-29 12:19:48 +0200
committerTobias Brunner <tobias@strongswan.org>2010-09-02 19:04:21 +0200
commit1d61bcaabd6bce13a313d343946820f7e3b5217c (patch)
tree3575a8b5f2f8a47d47e4eb987da196066a3c5eba /src/pluto/state.c
parent91f44a8bfca8dfb56c9df08cff1c49bcd0922ec1 (diff)
downloadstrongswan-1d61bcaabd6bce13a313d343946820f7e3b5217c.tar.bz2
strongswan-1d61bcaabd6bce13a313d343946820f7e3b5217c.tar.xz
pluto: Use time_monotonic() instead of time() for use time calculation.
That's because get_sa_info now returns a monotonic timestamp.
Diffstat (limited to 'src/pluto/state.c')
-rw-r--r--src/pluto/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/state.c b/src/pluto/state.c
index 51f444deb..a07ae6a60 100644
--- a/src/pluto/state.c
+++ b/src/pluto/state.c
@@ -782,7 +782,7 @@ void fmt_state(bool all, struct state *st, time_t n, char *state_buf,
}
if (st->st_esp.present)
{
- time_t now = time(NULL);
+ time_t now = time_monotonic(NULL);
add_said(&c->spd.that.host_addr, st->st_esp.attrs.spi, SA_ESP);
add_sa_info(st, FALSE);