]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pluto: Fixed expiration date test.
authorTobias Brunner <tobias@strongswan.org>
Fri, 23 Dec 2011 14:32:06 +0000 (15:32 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 23 Dec 2011 14:32:06 +0000 (15:32 +0100)
src/pluto/defs.c

index f83318e1269761b0e5fb189be85b257e938b6217..404194b8192ceea18d958a5cb5ccc3d2d86a1212 100644 (file)
@@ -91,8 +91,7 @@ mv_chunk(u_char **pos, chunk_t content)
 const char*
 check_expiry(time_t expiration_date, int warning_interval, bool strict)
 {
-       time_t now;
-       int time_left;
+       time_t now, time_left;
 
        if (expiration_date == UNDEFINED_TIME)
          return "ok (expires never)";